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