Blackhole For Bad Bots
Reference: blackhole
Free prestashop module to automagically ban bad robots who doesn't follow robots.txt instruction
This is very simple free module for prestashop and thirtybees platforms. It is based on a very simple idea:
-
you instruct all robots visiting your website NOT to open specific url
-
this module will add hidden link from all pages on your website to this forbidden page. This link is perfectly visible to all robots, but normal visitors will not notice it at all (without looking into web page source code)
-
when anyone access this forbidden page, their IP address will be immediately added to blacklist
-
blacklisted visitor are forbidden from viewing content from your website
-
shop administrator is notified about new entries to blacklist. They will receive email with WHOIS information about the visitor - their IP address, location, network, etc.
And that’s it. This trap will not affect any good robots who are following robots.txt
directives. On other hand, all bad bots and crawlers will be eventually trapped and forbidden from ever collecting information from your site again.
Module activation
- edit
robots.txt
file in the root directory
Before you install this module, you need to edit your robots.txt
file, and add following two lines
User-agent: *
Disallow: */blackhole/
-
install module
-
optionally, you can test it by navigating to
https://www.yourdomain.com/blackhole/
. You should be banned from your own site.
Moderation
List of blocked IP addresses is displayed in back office module configuration page. You can review use this list to review IP addresses. You can also unblock IP addresses that were trapped by mistake.
Configuration
You can change trap url if default https://www.yourdomain.com/blackhole/
does not meet your needs.
Simple and effective
Simple and great
Love it.
Simple, efficient, nice clean code, and free... what more could you want :)
Module Blackhole For Bad Bots
Great little Module
Already caught and trapped some bad bots.
Would be good if we could see those in the module to be able to un-ban certain IP address just in case they got there by accident
-
version 1.1.0 released on 10/02/2024
New functionality
Ability to set you own blackhole rewrite url -- if you don't like https://domain.com/blackhole you can change it to something like https://domain.com/my-honey-trap
List of blocked IP addresses in back office
Option to unblock IP address
-
version 1.0.2 released on 02/22/2019