Skip to content

Instantly share code, notes, and snippets.

@pgib
Created August 31, 2012 15:56
Show Gist options
  • Select an option

  • Save pgib/3555010 to your computer and use it in GitHub Desktop.

Select an option

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
<LocationMatch "wp-content/.*\.php$">
Order allow,deny
Deny from all
Satisfy All
</LocationMatch>
@pgib

pgib commented Aug 31, 2012

Copy link
Copy Markdown
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment