Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

RE: Dynamic Well Poisoner

by jepri (Parson)
on Oct 26, 2000 at 12:10 UTC ( #38575=note: print w/replies, xml ) Need Help??

in reply to Dynamic Well Poisoner

A good way to install this to use SSI to invoke your script. This will make the page appear to be normal HTML. Use the 'xbithack' directive for Apache and set the execute bit to cause your booby-trapped HTML page to be parsed. This will prevent spambots from identifying your program as a CGI script and avoiding it.

This way the spambot will see something like "myfriends.html" rather than "" or "script.shtml".

The complete solution will need these steps:
Make your my_friends_emails.html something like this:

<html> <!--#exec cgi="/cgi-bin/" --> </html>
In your Apache config file, set Includes to on
* Options +Includes
Set xbithack to on
* XBitHack on

Now on the command line
Set your page to execute status (the xbithack)
* chmod ug+x my_friends_emails.html

Reload Apache and wait. For more amusement, examine the server logs to see how many spambots you trapped.

Update: I forgot to add you have to load mod_include. For Debian users, it's in you /etc/apache/httpd.conf file. Uncomment the appropriate LoadModule line. Set up the Handlers in srm.conf. Also the Options +Includes line can be found in access.conf


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://38575]
[stevieb]: heh, yeah, sorry. This is integration testing for certain. In fact, it's even Continuous Integration ;)
[stevieb]: Obviously, Travis CI just won't cut it for these distributions...
[stevieb]: I went on my merry way writing a cross-platform, network-aware system that works across Perlbrew and Berrybrew systems and runs unit tests for Perl dists on all installed versions, with the ability to manage *brew commands themselves
[stevieb]: That worked out exceptionally well, as when I started that project, I hadn't delved into hardware development yet.
[stevieb]: found a issue in MetaCPAN::Client though today for my revdep tests. At least I think it's an issue

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2017-06-25 23:32 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (572 votes). Check out past polls.