« tunecss

How to allow access from specific ip addresses

These three lines of code can protect your entire website or a directory (e.g. wp-admin) from unauthorized web access.

Explanation of .htaccess rules

order deny,allow
deny from all
This orders to deny/forbid all requests to the server.

allow from 12.34.56.78
Replace "12.34.56.78" with your ip address. To find out your IP address search Google for ip address.
Add as many lines as you need. Each rule "allow from [address]" put in a separate line.