Trick To Allow Specific IP To View A Web Page

Okay, This is quite simple for those who have knowledge about .htaccess

Using this simple htaccess code you can simply restrict webpage to a specific IP, Its simply a 3 line code so enjoy.

Simply place below code into you .htaccess file and replace 65.19.156.26 with the IP u wan’t to allow to view the webpage.:
order deny,allow
allow from 65.19.156.26
deny from all

Let me know if u ding any problem in this code ;)

If you enjoyed this post, make sure you subscribe to my RSS feed!

Leave a Reply

Your email address will not be published. Required fields are marked *

*


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>