how to filter traffic?

leekuli

Registered Member
Joined
Jul 15, 2012
Messages
60
Reaction score
4
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,
 
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
 
Back
Top