1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Can I redirect an entire country via htaccess?

Discussion in 'Apache' started by Foxxy, May 6, 2014.

  1. #1
    I notice lately I get a lot of chinese bots signing up on my site with email addresses from 163.com, and of course, most of the Russians are using mail.ru addresses. I would like to redirect this bogus traffic right back to them.

    Is it possible in htaccess to geographically target people and redirect them to these sites? For example, anyone coming to my site from China will just get sent to 163.com and anyone from Russia will just be passed to mail.ru. Is it possible to do this without listing ever IP range for these countries?
     
    Foxxy, May 6, 2014 IP
  2. WSWD

    WSWD Well-Known Member

    Messages:
    1,420
    Likes Received:
    65
    Best Answers:
    1
    Trophy Points:
    175
    #2
    The only way you can really do it without listing IP ranges, is through PHP or such. .htaccess requires IP blocks.
     
    WSWD, May 6, 2014 IP
    Foxxy likes this.