How to block some words at register page? I dont want sm user register with any site name, example: google.com, how i can block these words at registration page? I want code for indifun script
How to block some words at register page? I dont want sm user register with any site name, example: google.com, how i can block these words at registration page? I want code for indifun script
If($sitename=$uid)
{
echo"bla bla bla"
}
you may look at reg name if it pattern matches url. maybe by doing check for dot in un
PHP Code:///function
function check($string){
$words = array(
// 'banned words/links blaaaa',
'google.ro',
'yahoo.ro'
);
foreach ($words as $word) {
if (strstr($string, $word)) {
return true;
}
}
return false;
}
////////USAGE :
$string='bla googdro 2';
if(check($string)){
echo"you cant use such words ";
}
else {
echo"ok?!";}
Thanks 4 help frnds
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks