Skip to content

Instantly share code, notes, and snippets.

@rutger1140
Created February 17, 2014 13:10
Show Gist options
  • Save rutger1140/9050228 to your computer and use it in GitHub Desktop.
Save rutger1140/9050228 to your computer and use it in GitHub Desktop.
Protect WordPress login's from unauthorized IP's
# Protect wp-login
<Files wp-login.php>
order deny,allow
deny from all
# Localhost
allow from ::1
allow from 192.168.
# IP from users
allow from 1.2.3.4
allow from 2.3.4.5
</Files>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment