Results 1 to 1 of 1

Thread: Blocking Bad Counties with an INCENTIVE

  1. #1
    Habaku's Avatar
    Habaku is offline Newbie Net Builder
    Join Date
    May 2009
    Posts
    448
    Thanks
    97
    Thanked 48 Times in 41 Posts

    Blocking Bad Counties with an INCENTIVE

    Hi Guys,

    I know many of you proxy owners block "bad" counties by means of GeoIP and .htaccess.

    More precisely, they often forward proxy visitors to another site, e.g. Google.

    Those which have not a good site for forwarding "bad traffic" can relay them to my special proxy Wonder Proxy.

    I would thank you by sending your proxy (*) to my proxy mailing list which has about 2400 subscribers.

    Thanks,
    vahing

    (*) Your proxy must be functional, easy to navigate, Spam free and without pop-ups or full page ads, but I reserve the right to refuse any proxy from being sent out to my quality mailing list. I further expect that you relay your "bad traffic" for one month at the least.


    Here is the code fragment you might need to ammend your GeoIP rules in masterGeoIP.php:

    PHP Code:
    <?php

    include('<your path to geoip.inc>'); //this file must exist in your directory

    $gi geoip_open('<your path to GeoIP.dat>',GEOIP_STANDARD);

    // get the ip of the visitor
    $addr getenv('REMOTE_ADDR');
    // translate his ip to a country code
    $country geoip_country_code_by_addr($gi$addr);
    // close the geo database
    geoip_close($gi);

    $badcountry = array('CN','KW','RU','IR','NG','PK','TR','SA');

    // redirect them if they suck
    if(in_array($country$badcountry))
    header('Location: http://hitwonder.info/'); //enter a url or page on your site


    ?>
    Last edited by Habaku; 3 July, 2010 at 20:45 PM. Reason: included abstract paths

Similar Threads

  1. [WTS] Incentive Script - NOT ENCRYPTED
    By ChaoscripT in forum Scripts
    Replies: 0
    Last Post: 16 January, 2011, 04:35 AM
  2. [WTS] Referral Based Incentive Script
    By ChaoscripT in forum Scripts
    Replies: 0
    Last Post: 30 September, 2010, 22:18 PM
  3. Name for an Incentive Site
    By Kovich in forum Building
    Replies: 2
    Last Post: 4 January, 2010, 03:03 AM
  4. [WTS] Blackhat incentive script
    By 2beblezd in forum Scripts
    Replies: 3
    Last Post: 25 August, 2009, 01:34 AM
  5. Incentive Marketing *dash* Reward websites
    By Nic SEO in forum Marketplace
    Replies: 0
    Last Post: 19 April, 2009, 05:47 AM

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
  •