1 Star2 Stars3 Stars4 Stars5 Stars (5 votes, average: 5.00 out of 5)

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.

<Files *.php>
deny from all

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


Upload this htaccess file to those directories for extra security.

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

Subscribe To My YouTube Channel:
Advanced Programming Made Easy

I hope you enjoyed the article. If I was able to help you please consider a tip for the content.

One Time Tip

more tips

Reoccuring Tips


Leave a Reply

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

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