How to enable access to website only from specified IP address?
Posted by Bill Williams on 26 April 2009 05:32 AM
Create a file named .htaccess in your public_html folder and add the following lines:

order deny,allow
deny from all
allow from IP
allow from IP
allow from IP

Then replace IP with your IP address or IP address from which you want to allow access.
(501 vote(s))
Not helpful

Comments (0)
Post a new comment
Full Name:
CAPTCHA Verification 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).