Disable PHP On A Directory With Htaccess

If you need to disable php on a directory with htaccess here is your script. Open up your text editor and paste this code in it.

[code]<Files *.php>
deny from all
</Files>[/code]

Upload it to the directory that you do not want PHP code executed. Most folders that are hacked in WordPress are…

wp-content/uploads/
wp-includes

Upload this htaccess file to those directories for extra security.

Only cool people share!

Disable PHP On A Directory With Htaccess was last modified: December 11th, 2016 by Maximus Mccullough

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.