Skip to content

Instantly share code, notes, and snippets.

@robin-scott
Created October 9, 2018 13:14
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 robin-scott/b697007b38c5fd68d7e3545ce491dca4 to your computer and use it in GitHub Desktop.
Save robin-scott/b697007b38c5fd68d7e3545ce491dca4 to your computer and use it in GitHub Desktop.
// Add this into your .htaccess file at the root of your WordPress installation. By Robin Scott of Silicon Dales.
// See full details here: https://silicondales.com/tutorials/wordpress/lock-out-all-traffic-except-your-ip-from-login-admin/
<Files wp-login.php>
Order Deny,Allow
Deny from all
Allow from X.X.X.X
</Files>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment