Protect your upload folder

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

[php] RemoveHandler .php .php4 .php5 RemoveType .php .php4 .php5 [/php]

4- save the file

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

Tags: , , , ,

{ 6 comments to read ... please submit one more! }

  1. nOgrZX , [url=http://ymgtzgzzwvsa.com/]ymgtzgzzwvsa[/url], [link=http://kqnhmrpwvego.com/]kqnhmrpwvego[/link], http://ybanljiwvsqz.com/

  2. NzNu9n , [url=http://amjtwlbjjsin.com/]amjtwlbjjsin[/url], [link=http://ngfyspihpnml.com/]ngfyspihpnml[/link], http://yryvzotdjjcq.com/

  3. I love these artciles. How many words can a wordsmith smith?

  4. That’s nice

{ 0 Pingbacks/Trackbacks }

Leave a Reply

Your email address will not be published. Required fields are marked *

*


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>