Page 1 of 8 123 ... LastLast
Results 1 to 10 of 78

Thread: How can i redirect bad traffic?

Hybrid View

  1. #1

    How can i redirect bad traffic?

    Hello how can i redirect bad traffic from iran etc. Any one who can share your .htaccess file? Thanks,

  2. #2

  3. #3
    ya, i tried to use block a country, block by ip address, deny access by country but can only block ips no redirect the traffic. How about geoip? Seems that i have to write a small php script for it. So can't redirect people BEFORE they visit the website.

  4. #4
    Quote Originally Posted by Greyhound View Post
    ya, i tried to use block a country, block by ip address, deny access by country but can only block ips no redirect the traffic. How about geoip? Seems that i have to write a small php script for it. So can't redirect people BEFORE they visit the website.
    I prefer this one: http://www.ip2location.com/blockvisitorsbycountry.aspx .

  5. #5
    Quote Originally Posted by miamia View Post
    I prefer this one: Block Visitors by Country .
    The issue I have with ip2location and blockacountry is they generate huge lists of IP addresses that need to be copied and pasted to .htacces, which can slow things down. GeoIP can block an entire country in just 3 lines. The only problem is the server has to have GeoIP installed, which most do not.

  6. #6
    Looks like we need a FAQ sticky for this question..

    There are various links to different GeoIP guides in the link Aziz posted to what I posted the other day.. At least one should help you set up a working Geoip redirect.

    So can't redirect people BEFORE they visit the website
    I don't think so. Wait till they hit your site then redirect them. It shouldn't take too long to set it all up.

  7. #7
    Hey mates, I'd like to use .htaccess file with GeoIP.dat to redirect bad traffic. But could you tell me what I should do before I put "GeoIPEnable On" in .htaccess file. Or I just got 500 internal server error. THanks.

  8. #8
    Do you have mod_geoip installed? http://www.maxmind.com/app/mod_geoip

    To be able to access geoip through htaccess you'll need the module mod_geoip loaded in apache. Are you in control of your server or is it shared?

    If it's shared you're most likely restricted to just running the pure php module for geoip.

    If it's your own server, you can install the GeoIP C Library and the apache module, mod_geoip to beable to use it however you want.

  9. #9
    I was going to buy the Maxmind geo database, I thought $50 is not bad, the catch was it costs $12/month for updates, so the purchase would cost $194 with a year of updates, I was thinking woah, I'll pass becuase that would drain my whole paypal account.
    Submit new proxies -

  10. #10
    Quote Originally Posted by Keldorn View Post
    I was going to buy the Maxmind geo database, I thought $50 is not bad, the catch was it costs $12/month for updates, so the purchase would cost $194 with a year of updates, I was thinking woah, I'll pass becuase that would drain my whole paypal account.
    Haha yeah, they get you with those updates. The free version is just as good for anything I'm going to use it for. The paid version is good if you need the most accurate data possible (99.8% versus 99.5% of the free) as fast as possible (automated updates weekly versus manual updates monthly).

Page 1 of 8 123 ... LastLast

Similar Threads

  1. Non www to www redirect
    By tetrapak in forum Managing
    Replies: 8
    Last Post: 31 May, 2010, 18:19 PM
  2. [WTS] Traffic | Traffic | Traffic | Dont forget to check inside
    By squintoo in forum Services
    Replies: 2
    Last Post: 16 October, 2009, 15:12 PM
  3. 301 redirect all to all
    By Hellas in forum Managing
    Replies: 0
    Last Post: 27 August, 2009, 12:25 PM
  4. How to redirect traffic with CSF?
    By ProxySites.ca in forum Web Hosting
    Replies: 1
    Last Post: 5 August, 2009, 23:47 PM
  5. Non-www. to www. 301 redirect
    By Dr. Stavros in forum Managing
    Replies: 8
    Last Post: 29 July, 2009, 18:51 PM

Tags for this Thread

Bookmarks

Posting Permissions

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