Welcome to WebmasterWorld Guest from 126.96.36.199
Some months ago, I added the getout.php and a fake htaccess.txt to my site. It has successfully collected a few dozen bad bot ip's. Thank you.
My problem is, that I must set the permission to 777 on the /trap directory and the fake /htaccess.txt file for the script to write to it.
I wonder how to fix that. the scripts run as httpd.
If I write a small one-time script, to create the directory and the htaccess file, will the other scripts then have permission to use them?
Will I have permission to use them?
Another, unrelated question:
I had in place a cron job that used find to report any changed files. My host has since made 'find' unavailable. Is their a way to use grep or sed or something to accomplish the same thing?
Thank you for the reply.
I think I am using mostly the same script as you.
My problem is, that unless I set the permissions to xx6 on the /htaccess.txt [dummy] and /trap, it does not work. [getout.php is creating /lock in /trap, rather than making my home directory world writable :)]
Apparently, httpd is not in my group, and therefore falls under other [world].
So it needs everything to be permission xx6 to read and write.
Can I add httpd to my group? Or is there another way?