There was a problem loading the comments.

How to enable access to website only from specified IP address?

Support Portal  »  Knowledgebase  »  Viewing Article

  Print
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.

Share via
Did you find this article useful?  

Related Articles


Comments

Add Comment

Replying to  


Self-Hosted Help Desk Software by SupportPal
© Indichosts.net