Skip to content

Instantly share code, notes, and snippets.

@robin-scott

robin-scott/htaccess

Last active Oct 9, 2018
Embed
What would you like to do?
// 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