Allow access website only certain IP addresses

There are few simple methods to restrict access to website by IP address

First one is to modify .htaccess  file by adding following:

Second solution is to modify index.php  by adding following:

Leave a Reply

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