Skip to content

Instantly share code, notes, and snippets.

@robin-scott
Last active October 9, 2018 13:19
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/adbee0a748eb883fddaea045f179a54e to your computer and use it in GitHub Desktop.
Save robin-scott/adbee0a748eb883fddaea045f179a54e to your computer and use it in GitHub Desktop.
// Add this to an .htaccess file at the top of the wp-admin directory to lock down this section of your site to only trusted IP addresses
// By Robin Scott of Silicon Dales - details here: https://silicondales.com/tutorials/wordpress/lock-out-all-traffic-except-your-ip-from-login-admin/
Order Deny,Allow
Deny from all
Allow from X.X.X.X
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment