How to redirect visitors of specific countries to 404 page?

Discussion in 'Site & Server Administration' started by bass, Sep 28, 2013.

  1. #1
    How to redirect visitors of specific countries to 404 page?

    I want to know about methods to redirect them to 404 page.

    Have anyone help me to write or guide it?

    Thank you very much
     
    bass, Sep 28, 2013 IP
  2. ServerPolice

    ServerPolice Greenhorn

    Messages:
    18
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    23
    #2
    Best is to use Maxmind's apache mod,

    Have a look here
    
    http://dev.maxmind.com/geoip/legacy/mod_geoip2/
    
    Code (markup):
     
    ServerPolice, Oct 2, 2013 IP
  3. GURU4SEO

    GURU4SEO Well-Known Member

    Messages:
    760
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    135
    #3
    its looks good
    anyone know any shared webhosting that have this module installed by default on their shared hosting package

    i would like to try this

    if you know any host please suggest
     
    GURU4SEO, Oct 5, 2013 IP
  4. tinhduong

    tinhduong Member

    Messages:
    26
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    33
    #4
    You can do it yourself, with a simple php code include on your index.

     
    tinhduong, Oct 6, 2013 IP
    GURU4SEO likes this.