Trying to block a bot that is changing it's ip address but the host name is staying the same. The Block Bad Bot module BBB.zip can it be modified to instead of blocking based on the user agent block instead by the customers session host name?
below is the code for the BBB to block a user agent:
PHP Code:
<?php
if (stristr(strtolower($_SERVER['HTTP_USER_AGENT']), 'badrobotnamehere')) {
@header("HTTP/1.1 410 Gone");
exit();
}
Bookmarks