i just wanted to share some kind of phpld stuff. If you are running a phpld directory and have lots of spam from russian or chinese websites and dont want to remove them day by day manually, simply add some code to your submit.php: Look for the following code: if (strlen (trim ($data['URL'])) > 0 && !preg_match ('#^http[s]?:\/\/#i', $data['URL'])) $data['URL'] = "http://".$data['URL']; Code (markup): Right behind this code add the following code: if (preg_match("/.ru/.cn/i", $data['URL'])) unset ($data); $reason = _L('We dont allow this kind of websites').'.'; gotoUnauthorized($reason); Code (markup): This code prevents submitting .ru and .cn websites. You can add other domain extensions as well.
still it will not stop the spam, it will stop submitting domains with such extensions, and of course it will prevent submitting good websites with such extensions. Manual editing is the only way.
Don't you think you will miss out on genuine russian and other sites as well? Just banning the domain extension wouldn't help. Because you'd find more com and net sites spamming the hell out of directories. Better option is, implementing the spam control tools like complex-ed captchas and adding some "tick boxes" which are not in default phpld scripts.
thanks for the help. it's good post and we do this by saving our directory from spam which mostly being happened by chines and Russian but they have also good website which they do submission so that time what we do? So it's better we remove it manually or if somebody don't like to remove manually then it's better to implement this code in submit page. it's working well.
wow.. very helpful information. can you give some tips about the preventing spammers in wp blog? i use akismet but still i have to delete those spams manually.