Allow IP Address

By placing the following code in your .htaccess file, you can block access to your website from everyone except the IP addresses you specify.

This can be particularly useful if your website is under construction and you don’t want other visitors to see the site, or have search engine spiders indexing pages that are not yet completed.

<Limit GET POST PUT>
order deny,allow
deny from all
allow from 12.345.67.890
</Limit>

Just insert your IP address, or the IP addresses you wish to allow access to your site. Each IP address is placed on a new line. For example:

<Limit GET POST PUT>
order deny,allow
deny from all
allow from 12.345.67.890
allow from 890.67.345.12
</Limit>