ZoomCities IT Community Webmaster Forum

Full Version: protecting writable directory
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi friends,
i was just thinking.. is there any way to protect the writable directories (directories with 777 CHMOD) from running unsolicited php scripts?

can it be done by using .htaccess or anything like that?

The reason is.. many spammers are using the writable directories as their target.. and if you use google webmaster tools, then you might find increasing number of not found errors and also you will see bot is crawling pages which never existed in your server.. this is done by spammers..

So i wanted to know your comments regarding protection of writable directories to run php or any script..
regards,
Ajay
Go into the writable directory and just chmod the specific PHP file to 644.
Reference URL's