A time ago
mconsidine suggested
blackhole to me!
I tried it out and it works nice this far. Here is a tutorial how I
implemented into my MODx EVO site
1. Download zip
http://perishablepress.com/press/2010/07/14/blackhole-bad-bots/#blackhole-download
2. Edit the blackhole: index.php as described
- Line #54: Edit the path to your site’s robots.txt file
- Line #56: Edit the path to your contact page (or email address)
- + Line #128: Add file path - see code below
$filename = dirname(__FILE__) . "/blackhole.dat";
3 Edit the blackhole: blackhole.php
- Line #53: Edit the path to your contact page (or email address)
- + Line #37: Add file path - see code below
$filename = dirname(__FILE__) . "/blackhole.dat";
4. Put index.php and blackhole.php in the /blackhole directory
5. Upload the /blackhole directory to root and make sure files are writable.
6. In your robots.txt add:
7. in TOP of the MODx EVO index.php add
include_once(dirname(__FILE__) . '/blackhole/blackhole.php');
Over and out...