allowing particular country to access my website

May 17, 2010
Hello All,

we are trying to allow website to be accessed only by a specific country through .htaccess, all the deny rules added for a country and we got the ready file from internet.

Now if the file on internet gets update with the new IP's then that should be updated under .htaccess file.

I have the script prepared for it, script functions as follows: will download the file from internet
2.find the difference between the previousfile and the latest one downloaded from internet
3. if difference found then it will email to the concerned parties that new IP's needs to be added under .htaccess
4.after that it will delete the old file and new file will become the latest file.

is my approach rite?
also can someone please tell me on what frequency the database on internet gets updated for the particular country?