Quote:
Originally Posted by tommykjensen
I don't know if this has been asked but is it possible to modify this so the IP address is included in the email? I would like to add the IP addresses of the spambots to my .htaccess file to block them completely.
|
The original post with this info ought to be linked to in the body of the thread...but it isn't so:
To include the IP in the email.
Go to the Plugin Manager in your AdminCP
Click edit for "register_addmember_process" under Is Bot product
Find:
Code:
$isbot_email = htmlspecialchars_uni($vbulletin->GPC['email']);
Below it add:
Code:
$isbot_ipaddy = IPADDRESS;
next find:
Code:
. ' (' . $isbot_timediff . ' ' . $vbphrase['isbot_seconds_transpired'] . ')';
REPLACE it with:
Code:
. ' (' . $isbot_timediff . ' ' . $vbphrase['isbot_seconds_transpired'] . ')'
. ' The IP Address is: ' . $isbot_ipaddy ;