I have setup the spider trap as described, but it doesn't seem to be adding the addresses to the htaccess file. Any ideas or would you like more information?
httpwebwitch
3:34 pm on Jul 7, 2011 (gmt 0)
you have a script that writes to the htaccess file?
that's a bit dangerous isn't it? I'm sure file permissions are going to be involved
httpwebwitch
3:34 pm on Jul 7, 2011 (gmt 0)
welcome to WebmasterWorld!
bugguard
11:59 pm on Jul 7, 2011 (gmt 0)
Thank you for the welcome, the script in question comes from [webmasterworld.com...] and the file permissions on htaccess are 644
Leosghost
12:21 am on Jul 8, 2011 (gmt 0)
the original uses 604
I miss isitreal :(
bugguard
12:35 am on Jul 8, 2011 (gmt 0)
Thanks - I have changed it back to 604, don't see how that will affect it tho. I am wondering more about the path to htaccess in the getout script $filename = "/var/www/html/.htaccess"; bit of a noob here with php, both the script and htaccess are in the root, do I need to change this?
Leosghost
1:14 am on Jul 8, 2011 (gmt 0)
My mistake ( it is very late here, nearly 03.am and I'm full of painkillers and antibiotics..and "medicinal rhum" ;-) )..Forgot to say welcome too ..:)
The .htaccess permission should be 606
The getout.php permission should be 604 ( can be set to 404 eventually, if you are not going to be changing it )
isitreal's second post on that thread bears rereading ..
The path you have is correct, if you want the getout.php file to be able to write to an .htaccess file that is in the root...and if your server/ account is set up as standard ..
If not, you'd just change the path of the .htaccess that getout.php writes to accordingly.
( probably superfluous , but one never knows ..don't forget to change all the email addys such as me@mysite.com etc in getout.php to the actual ones you will be using on your site..:)
Birdman is still around ..and may look in ..H ?
bugguard
7:32 am on Jul 8, 2011 (gmt 0)
Thank you so much for your help. I finally got it working - yes it was the path to htaccess. And thanks to Birdman for writing it in the first place