Skip to content

Instantly share code, notes, and snippets.

@jaworowicz
Created October 21, 2019 11:33
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 jaworowicz/1d81d7c2e13d665b3eb7cfa41bc3bd51 to your computer and use it in GitHub Desktop.
Save jaworowicz/1d81d7c2e13d665b3eb7cfa41bc3bd51 to your computer and use it in GitHub Desktop.
Save in to main .htaccess file. https://jaworowi.cz
<FilesMatch "wp-config.*\.php|\.htaccess|readme\.html|license\.txt">
Order allow,deny
Deny from all
</FilesMatch>
================ KOD 2 (jeżeli nie potrzebujesz XML-RPC)
<FilesMatch "wp-config.*\.php|\.htaccess|readme\.html|license\.txt|xmlrpc\.php">
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