Skip to content

Instantly share code, notes, and snippets.

@sergejmueller
Created June 14, 2016 19:18
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sergejmueller/e8c5862db4ad47e470adffc12d250dd0 to your computer and use it in GitHub Desktop.
Save sergejmueller/e8c5862db4ad47e470adffc12d250dd0 to your computer and use it in GitHub Desktop.
WordPress Security: Prevent browser and search engines to request LOG (WP debug) and TXT (plugins readme) files in Apache
# To be placed in
# /wp-content/.htaccess
<FilesMatch "\.(log|txt)$">
Order Allow,Deny
Deny from all
</FilesMatch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment