Daera
Affiliate Guard Dog Member
- Joined
- Oct 16, 2008
- Messages
- 291
- Reaction score
- 0
Make sure you test the registration process afterwards and the confirmation link in the email Daera - its been a while since I used it
I added the following code to my registration.php. Unless I forgot how to count, the number of characters in my domain is also 25.
<?php
//Check its a link from within the site (stop direct bots)
if (substr($_SERVER['HTTP_REFERER'],0,25) != "http://www.hpgambling.com") {
//Now check its not a click from an activation email
if ($_GET['a'] != "act" && $_GET['a'] != "ver") {
echo "<html><head><title>Register</title><META NAME=\"ROBOTS\" CONTENT=\"NOINDEX\"></head><body></body></html>";
exit;
}
}
//Check standard fields for "123456" string (spammers use it)
foreach ($_POST as $p) {
if (strpos($p,"123456") !== false) {
exit;
}
}
//Check userfields for "123456" string (spammers use it)
foreach ($_POST['userfield'] as $key => $p) {
if (strpos($p,"123456") !== false) {
exit;
}
}
After uploading the changed script, I clicked on our register link and got the following error.
So I just put the original register link back. It was worth a try though.
The isbot mod is working fairly well. Yesterday, I ended up with over 100 BLOCKED registrations from isbot, with only about 2-3 spam bots that were able to register. So that's not too bad.