Asyraf.org :-)

Welcome to Asyraf.org

Welcome to www.asyraf.org that is my personal web blog. Want to know bout me? Find it your self...Hakss...Actually, asyraf.org was publish in May 2008 with motif of information sharing and just as my hobby develop a website.

Asyraf.org contain several categories such as review section, tutorial section, blogging section, picture and video sharing zone & download section.

Asyraf.org
Home Tutorial Joomla! & Webmater Tips Protecting 777 CHmodded Folders

25

Jun

2008

Protecting 777 CHmodded Folders PDF Print E-mail
Written by Asyraf   
As most of you already know, chmod 777 would give writing / executing rights for everyone `on *nix servers`, it is mostly used in upload scripts / galleries / logs..

Well, you can protect that folder, from being used by the hackers

Simple way of doing it is, using a .htaccess, and turning the PHP engine off on that folder and disallowing html / pl / php files.. here is how:

Create a new file, called .htaccess, in it:

<Files ~ "(php\.ini|\.htaccess|\.php.?|\.pl|\.cgi)$">
order deny,allow
deny from all
</Files>

or you can use this code if you faced the internal error
php_flag engine off
<Files ~ "\.(php*|s?p?html|cgi|pl)$">
deny from all
</Files>
Comments (1)Add Comment
...
written by ezat, September 13, 2008
Why give files and folders world writeable permissions in the first place? Tis a common problem when it comes to users on *nix related os's. It is very easy to be tempted to give these types of permissons as they get one out of trouble.

e`
report abuse
vote down
vote up
Votes: +1

Write comment
You must be logged in to a comment. Please register if you do not have an account yet.

busy
Last Updated on Wednesday, 25 June 2008 11:41
 

Login Here

Who's Online

We have 9 guests online

Tag Cloud