Skip to content

Instantly share code, notes, and snippets.

@olkitu
Created March 7, 2019 21:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olkitu/671bd09b4f0d6ef3be87e0feae5a8d52 to your computer and use it in GitHub Desktop.
Save olkitu/671bd09b4f0d6ef3be87e0feae5a8d52 to your computer and use it in GitHub Desktop.
Block access to PHP files on wp-content/upload, wp-content and wp-include directory
<Files ~ "\.ph(?:p[345]?|t|tml)$">
deny from all
</Files>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment