|
|
|
|
|
|
|
![]() |
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
![]() |
#1 |
ICQ:147*079*406
|
Any way to filter out Geo specific traffic
I was just wondering and Im sure theres a way..just beyond my scope of knowledge. How can I filter out GEO specific traffic...or have my site handle them different. .htaccess? or something else?
Thanks ***
__________________
The Sexy Side of Porn |
![]() |
![]() |
![]() |
#2 |
It is better to watch things then to do them
Join Date: Sep 2004
Location: The Thumb
Posts: 484
|
AFAIK it can be done with htaccess, but the problem is that the IPs for each country are always changing so its a real pain to keep it up to date.
There are services that provide this for a fee, but I haven't tried any myself.
__________________
I buy text links, clicked traffic, blog posts, and more! Hit me with a pm. |
![]() |
![]() |
![]() |
#3 |
Aw, Dad, you've done a lot of great things, but you're a very old man, and old people are useless
|
You can use .htaccess to redirect specific countries.
Code:
RewriteEngine on RewriteCond %{HTTP:Accept-Language} (aa|ab|af|am|ar|as|ay|az|ba|be|bh|bi|bn|bo|br|ca|co|dz|fa|gn|gu|ha|hi|kk|km|ku|ky|lo|lt|lv|mg|mi|mk|ml|mn|mo|mr|ms|mt|my|na|ne|oc|om|or|pa|qu|rn|ru|rw|sa|sd|sg|si|sn|so|ss|st|su|sw|ta|te|tg|th|ti|tk|tl|tn|to|tr|ts|tt|tw|uk|ur|uz|vi|vo|wo|xh|yo|zh|zu) [NC] RewriteRule .* http://www.SOMEWEBSITE.com [R,L]
__________________
DJ - JuicyAds.com, Director of Sales dj -at- juicyads (dawt) com Last edited by deejne; 2008-01-25 at 10:38 PM.. |
![]() |
![]() |
![]() |
#4 |
Lonewolf Internet Sales
|
You can also do it with javascript based on browser language setting. I use it to filter out Chinese traffic.
Code:
<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript"> if (navigator.appName == 'Netscape') var language = navigator.language; else var language = navigator.browserLanguage; if (language.indexOf('zh') > -1 || language.indexOf('zh-cn') > -1 || language.indexOf('zh-hk') > -1 || language.indexOf('zh-mo') > -1 || language.indexOf('zh-tw') > -1 || language.indexOf('zh-sg') > -1) document.location.href = 'http://www.insert-your-redirect-url-here.com'; </script> |
![]() |
![]() |
![]() |
#5 |
It is better to watch things then to do them
Join Date: Sep 2004
Location: The Thumb
Posts: 484
|
well as I understand it filtering by the browser language isn't 100% accurate as not all surfers have their browser set to their native language, but I suppose its better than nothing.
__________________
I buy text links, clicked traffic, blog posts, and more! Hit me with a pm. |
![]() |
![]() |
![]() |
#6 |
Banned
Join Date: Oct 2003
Location: About to be evicted!!!!
Posts: 4,082
|
Do remember that by filtering by browser language you are NOT filtering by country, but by the language the surfer is happiest with. Most people set their browser to the language they grew up speaking, even if they speak English, live in an English speaking country, and use English 99.9% of the time. For example, using this code you are blocking your site from the majority of American Chinese, if you are redirecting them to a Chinese sponsor you are throwing away this traffic, because your Chinese sponsor will be set up to accept Chinese currency and American Chinese will only have $US in their pocket.
|
![]() |
![]() |
![]() |
#7 | |
Lonewolf Internet Sales
|
Quote:
As for American Chinese, while I have no data, I don't really believe that an overwhelming majority would have their browser language set to Chinese. Even so, we're talking about a very small percentage of what is already a relatively small percentage of my incoming traffic. Simply not enough to worry about. |
|
![]() |
![]() |
![]() |
#8 | |
Banned
Join Date: Oct 2003
Location: About to be evicted!!!!
Posts: 4,082
|
Quote:
I so wish I had your problems "I've so many hundred dollar bills in my wallet, I'm going to throw out all the one dollar bills" !!! |
|
![]() |
![]() |
![]() |
#9 | |
Lonewolf Internet Sales
|
Quote:
Even if 100% of American Chinese (those whose native language is Chinese) use Chinese as their browser default language, given my current traffic numbers and conversion ratios we're talking about 2 or 3 sales per year that I might be missing. Also, I'm not just blocking this Chinese traffic, I'm redirecting it and making an attempt to monetize it in other ways, which is currently generating the equivalent of 3 to 5 sales per month. Last edited by Toby; 2008-01-26 at 02:01 PM.. |
|
![]() |
![]() |
![]() |
#10 |
Banned
Join Date: Oct 2003
Location: About to be evicted!!!!
Posts: 4,082
|
|
![]() |
![]() |
![]() |
#11 | |
Lonewolf Internet Sales
|
Quote:
For me, the cost in terms of time and software to be able to more accurately filter that traffic outweighs the potential benefits of doing so. The circumstances for your business may be different. |
|
![]() |
![]() |
![]() |
#12 |
Banned
Join Date: Oct 2003
Location: About to be evicted!!!!
Posts: 4,082
|
|
![]() |
![]() |
![]() |
#13 |
And Lord, we are especially thankful for nuclear power, the cleanest, safest
energy source there is. Except for solar, which is just a pipe dream |
it's build into E power trader, they have a nice little country redirect that works pretty cool
|
![]() |
![]() |
![]() |
#14 |
ICQ:147*079*406
|
Toby thats exactly what I wanted it for thank you. Does that work for you? What type of redirect URL do you use?
***
__________________
The Sexy Side of Porn Last edited by NY Jester; 2008-01-29 at 08:12 AM.. |
![]() |
![]() |
![]() |
#15 | |
Lonewolf Internet Sales
|
Quote:
P.S. you have a PM |
|
![]() |
![]() |
![]() |
#16 |
ICQ:147*079*406
|
Ill have to work on it. Thanks all for the feedback
__________________
The Sexy Side of Porn |
![]() |
![]() |
![]() |
#17 |
You can now put whatever you want in this space :)
Join Date: Nov 2006
Location: Vulcan
Posts: 695
|
I got blacklisted by a small time TGP owner for redirecting Chinese traffic? What do most LL owners feel about redirecting crap traffic?
|
![]() |
![]() |
![]() |
#18 | |
Banned
Join Date: Oct 2003
Location: About to be evicted!!!!
Posts: 4,082
|
Quote:
However having said that, the last time I checked, several bigger LLs and TGPs stated "no geo-redirect" in their rules - EVEN SPONSOR REDIRECTS (i.e. you link to bongo-porn.com, Bongo Porn does not want Chinese traffic so redirects it to a non CC type site, you don't even know this is happening, but you get blacklisted for it). |
|
![]() |
![]() |
![]() |
#19 | |
You can now put whatever you want in this space :)
Join Date: Nov 2006
Location: Vulcan
Posts: 695
|
Quote:
|
|
![]() |
![]() |
![]() |
#20 | |
You can now put whatever you want in this space :)
Join Date: Nov 2006
Location: Vulcan
Posts: 695
|
Quote:
|
|
![]() |
![]() |
![]() |
#21 |
Banned
Join Date: Oct 2003
Location: About to be evicted!!!!
Posts: 4,082
|
|
![]() |
![]() |
![]() |
#22 |
If something goes wrong at the plant, blame the guy who can't speak English
|
I use this script to relocate some custommers
<?php $IPaddress=$REMOTE_ADDR; $two_letter_country_code=iptocountry($IPaddress); if ($two_letter_country_code=="BE"){ include("redirect.php"); exit;} else{ if ($two_letter_country_code=="NL"){ include("redirect.php"); exit;} else{} } function iptocountry($ip) { $numbers = preg_split( "/\./", $ip); include("ip_files/".$numbers[0].".php"); $code=($numbers[0] * 16777216) + ($numbers[1] * 65536) + ($numbers[2] * 256) + ($numbers[3]); foreach($ranges as $key => $value){ if($key<=$code){ if($ranges[$key][0]>=$code){$country=$ranges[$key][1];break;} } } if ($country==""){$country="unkown";} return $country; } ?> |
![]() |
![]() |
![]() |
#23 |
WHO IS FONZY!?! Don't they teach you anything at school?
Join Date: Mar 2005
Posts: 49
|
Nice thread! I'm going to have to do some redirecting on my new mobile site here soon
![]() |
![]() |
![]() |
![]() |
#24 | |
No offence Apu, but when they were handing out religions you must have been out taking a whizz
|
Quote:
![]()
__________________
Meat Cash 8 Week $100 PPS Promo |
|
![]() |
![]() |
![]() |
#25 | |
Hey, can you take the wheel for a second, I have to scratch my self in two places at once
|
Quote:
__________________
The Tit Directory |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | Rate This Thread |
|
|