Protect your upload folder

This item was filled under General

Hi, This codes will protect your site from uploading and execute any type of php shell scripts into your upload folder for example , this way will disable any php file in that folder . So , whatever they upload you gonna be in the safe side .the server will deal with php file like txt file !!. This way is very useful in file uploading scripts :

1- make sure that your server is Apache not iis or something else .

2- create file and name it .htaccess  inside upload folder.

3- paste this code in the file

 RemoveHandler .php .php4 .php5 RemoveType .php .php4 .php5 

4- save the file

5- that's it now any php file in that folder is disabled .

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • Live
  • Yahoo! Buzz
  • BlinkList
  • Diigo
Popularity: 3 views
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

One Comment on “Protect your upload folder”

  • John
    24 June, 2010, 20:49

    That’s nice

Leave a Comment

easywamp best wamp server