homepage Welcome to WebmasterWorld Guest from 107.20.131.154
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
BadBot Script help needed
permissions
opraus




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

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

 

youfoundjake




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

opraus, i went through this about 18 months ago.. here's a script that uses 755 as the permission..
[webmasterworld.com...]

opraus




msg:3812522
 12:54 am on Dec 22, 2008 (gmt 0)

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

opraus




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

I got the perl version to work with proper permissions.

[webmasterworld.com...]

Thanks

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved