Results 1 to 3 of 3

Thread: Apache - Restrict site access to one country

  1. #1
    Join Date
    Jun 2008
    Location
    Dublin, Ireland
    Posts
    298

    Default Apache - Restrict site access to one country

    Hi,

    Does anyone know if I can restrict site access to just one country in Apache? Our web site provides a service which requires insurance. The insurance company will only provide insurance provided that we can give some sort of assurances that only people from Ireland (in this case) can access the site. I looked up the ip ranges for Ireland. There are a load of ranges.

    Any suggestions greatly appreciated...

    /jlar

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    27,254
    Blog Entries
    15

    Default Re: Apache - Restrict site access to one country

    Quote Originally Posted by eeijlar
    Hi,

    Does anyone know if I can restrict site access to just one country in
    Apache? Our web site provides a service which requires insurance. The
    insurance company will only provide insurance provided that we can give
    some sort of assurances that only people from Ireland (in this case) can
    access the site. I looked up the ip ranges for Ireland. There are a load
    of ranges.

    Any suggestions greatly appreciated...

    /jlar
    Hi
    The GeoIP API? You should be able to redirect no Ireland users to a
    'sorry page'
    Here is an example....
    http://www.maxmind.com/app/mod_geoip

    --
    Cheers Malcolm (Linux Counter #276890)
    SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default
    up 3 days 0:28, 2 users, load average: 1.99, 1.40, 0.63
    GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18


  3. #3
    Join Date
    Jun 2008
    Location
    Dublin, Ireland
    Posts
    298

    Default Re: Apache - Restrict site access to one country

    Great thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •