Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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 "script.pl" or "script.shtml".

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

<html> <!--#exec cgi="/cgi-bin/script.pl" --> </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

____________________
Jeremy


Comment on RE: Dynamic Well Poisoner
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://38575]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (17)
As of 2014-07-30 07:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (229 votes), past polls