Created
August 31, 2012 15:56
-
-
Save pgib/3555010 to your computer and use it in GitHub Desktop.
Apache config directive to disallow access to any .php file found in a wp-content folder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <LocationMatch "wp-content/.*\.php$"> | |
| Order allow,deny | |
| Deny from all | |
| Satisfy All | |
| </LocationMatch> |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hopefully this doesn't cause too many problems! I think most well-written Wordpress plug-ins don't use direct URL access to php scripts.