Welcome to WebmasterWorld Guest from 54.166.114.43

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

BadBot Script help needed

permissions

   
11:27 am on Dec 21, 2008 (gmt 0)

5+ Year Member



Hi,

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?

-David

11:41 pm on Dec 21, 2008 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



opraus, i went through this about 18 months ago.. here's a script that uses 755 as the permission..
[webmasterworld.com...]
12:54 am on Dec 22, 2008 (gmt 0)

5+ Year Member



Hi YouFoundJake,

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?

-opraus

9:29 pm on Dec 22, 2008 (gmt 0)

5+ Year Member



I got the perl version to work with proper permissions.

[webmasterworld.com...]

Thanks