Quick Search:
 
 PHP Code: Protect Writable Directory Jump to:  
Category: >> PHP Code >> Protect Writable Directory  

<< lastnext >>

Snippet Name: Protect Writable Directory

Description: Use this in writeable directories in .htaccess.
This prevents execution of php files but allows everything else.

Comment: (none)

Language: HTACCESS
Highlight Mode: HTML4STRICT
Last Modified: February 27th, 2009

<Files ~ "\.(php)$">
order deny,allow
allow from <my ip address>
deny from all
</Files>
 


 
   Home |    Search |    Code Library |    Sponsors |    Privacy |    Terms of Use |    Contact Us © 2003 - 2024 psoug.org