Forum Moderators: coopster

Message Too Old, No Replies

Converting the trap script to php

         

Joe Belmaati

12:03 pm on Oct 4, 2004 (gmt 0)

10+ Year Member



This is my first post here, so I am hoping that I am posting in the right forum.

Has anyone tried to convert Key_master's trap perl script to php, and if not - is this at all possible? I had no problem in getting the original perl version to work, but apparently the script was too taxing on the Apache server - (it brought the server to it's knees!). MY host has asked me to re-write the script using php, but unfortunately I don't possess the programmer's skills to get this done. So if anyone has heard of a php version (or a php script that does something similar) I would be extremely grateful!

Sincerely
Joe Belmaati
Copenhagen Denmark

coopster

4:29 pm on Oct 4, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, Joe_Belmaati!

Birdman may have already done the job...
Updated PHP Bad Bot Script [webmasterworld.com]
AKA: Spider Trap

Joe Belmaati

7:25 am on Oct 5, 2004 (gmt 0)

10+ Year Member



Thanks a bunch! This script worked flawlessly for me. And my host is happy too!

Joe Belmaati

7:59 am on Oct 5, 2004 (gmt 0)

10+ Year Member



OK, I have run into a problem with this script. The lines in the htaccess files causes my htaccess file to be readable by anyone.

Is there a way to combine


<Files *>
order deny,allow
deny from env=getout
allow from env=allowsome
</Files>

with

<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>

so that the trap script works, but no one can view my htaccess file?

Any help is MUCH appreciated!
Sincerely
Joe Belmaati
Copenhagen Denmark