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 words?
Started on the old forum in January 2010 · view the original in the archive · old links redirect here
If($sitename=$uid) { echo"bla bla bla" }
/* I don't know everything hehe */
you may look at reg name if it pattern matches url. maybe by doing check for dot in un
Follow me @ksg91 | My Blog: http://ksg91.com | Nokia Blog: http://NokiaTips.in
///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?!";}
Unamos los corazones,hoy todos somos multicolores!