Thread
:
Blocking domains with preg_match?
View Single Post
#
4
(
permalink
)
11-20-09, 08:04 AM
wirehopper
-
Join Date: Feb 2006
Posts: 2,515
Thanks: 20
Thanked 109 Times in 106 Posts
Quote:
Basically, I'm just looking to block anything that ends with .ru
You could also use strrchr.
PHP: strrchr - Manual
PHP Code:
$mRu
=
strrchr
(
'.ru'
,
strtolower
(
$sEmail
));
if (
$mRu
!=
false
)
$mRu
=(
$mRu
==
'.ru'
);
Not tested.
wirehopper
View Public Profile
Find all posts by wirehopper