how to filter traffic?

Discussion in 'Black Hat SEO' started by leekuli, Jun 24, 2015.

  1. leekuli

    leekuli Registered Member

    Joined:
    Jul 15, 2012
    Messages:
    51
    Likes Received:
    2
    Hi,

    I need some codes to paste in my webpages that will filter traffic for me

    I mean i want to :

    if visitors ip from US ,ad banners A will show

    if visitors ip from CA, ad banners B will show

    ETC...

    And if i want to show ad banners C to USA traffic only how to achieve that?

    Thanks,
     
  2. BTCnet

    BTCnet Newbie

    Joined:
    Apr 25, 2015
    Messages:
    40
    Likes Received:
    5
    There are several ways to do that, just look on google "php ip geolocation" and you will find a bunch of code snippets and APIs, for instance:
    Code:
    ip-api.com/docs/
    
    css-tricks.com/snippets/php/detect-location-by-ip/
    
    us3.php.net/manual/ro/book.geoip.php
    

    When you have the ip geolocation running , just do a simple country validation for your banners