CoderZone.org

Category: >> PHP Code >> Protect Writable Directory Bookmark and Share

<< 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)

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

<Files ~ "\.(php)$">
order deny,allow
allow from <my ip address>
deny from all
</Files>
 
 
There haven't been any comments added for this snippet yet. You may add one if you like.  Add a comment 
© coderzone.org | users online: 8