The Best Tool For Blocking A Country From Your Site

Discussion in 'Products & Tools' started by longhornfreak, Jul 30, 2007.

  1. #1
    My Problem:
    I own a proxy site. One day I log into my Cpanel and notice that my bandwidth shot up almost 200% in 6 hours. Wrong, my site was being abused from people in Iran, chewing up my bandwidth. I checked adsense and saw that my clicks had jumped, but the quality of the clicks wasn't good, because the ads arn't relevent to Iranians. I needed a fast fix, I thought blocking them with IP ranges in .htaccess was the best way. I found Iran has about 200 diffrent ranges, after doing about 20 ranges, I figured it was too slow. I went searching for another solution.

    The Solution:

    http://lonewolf-online.net/computers/knowledgebase/php_block_country_from_accessing_website/

    It explains step by step what to do.

    I also changed the error page that I made specifically to Iran to contain many pop ups and unders. That way they can pay back what they spent.

    I drasticly decreased my bandwidth, got rid of trashy traffic, and increased my revenue :)
     
    longhornfreak, Jul 30, 2007 IP