Skip to content

Instantly share code, notes, and snippets.

@devuri
Created October 2, 2017 11:44
Show Gist options
  • Select an option

  • Save devuri/237debe414a49d82726df0a7568eefa9 to your computer and use it in GitHub Desktop.

Select an option

Save devuri/237debe414a49d82726df0a7568eefa9 to your computer and use it in GitHub Desktop.
Deny access to the login page and return a 404 add this to .htaccess
#secure the login page
ErrorDocument 403 /path-dummy-returns404/index.php?error=404
<Files wp-login.php>
order deny,allow
Deny from all
# Allow this IP address
allow from 123.123.444.44
</Files>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment