The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

allowing particular country to access my website

Discussion in 'General Discussion' started by support@exa.com, May 17, 2010.

  1. support@exa.com

    Joined:
    May 17, 2010
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    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:

    1.it 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?

    Regards,
    MihirJ
     
  2. support@exa.com

    Joined:
    May 17, 2010
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Hello Support,

    Any comments or suggestions?

    Regards,
    MihirJ
     
  3. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,478
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    While this is not specifically cPanel related, I would think you'd need to ask your question to the person who maintains the list you're pulling from the Internet somewhere for your custom made script.
     
Loading...

Share This Page