Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2007-09-16, 03:28 AM   #1
Mr Spock
You can now put whatever you want in this space :)
 
Mr Spock's Avatar
 
Join Date: Nov 2006
Location: Vulcan
Posts: 695
Redirect Chinese Traffic

I want to redirect Chinese traffic and added the following code to my htaccess file:

RewriteEngine on
RewriteCond %{HTTP:Accept-Language} (zh) [NC]
RewriteRule .* http://toplist.myfree-porn.com [R,L]

Redirects based on browser language, I was redirecting based on referrer, but it became tedious to update the referrer list every day.

Will this work?
Is their an easier way?
Mr Spock is offline   Reply With Quote
Old 2007-09-17, 11:29 AM   #2
Mr Spock
You can now put whatever you want in this space :)
 
Mr Spock's Avatar
 
Join Date: Nov 2006
Location: Vulcan
Posts: 695
Mr Spock is offline   Reply With Quote
Old 2007-09-17, 12:10 PM   #3
ArtWilliams
You can now put whatever you want in this space :)
 
ArtWilliams's Avatar
 
Join Date: Sep 2004
Location: Toronto, Canada
Posts: 6,244
Send a message via ICQ to ArtWilliams
This is what I use in my .htaccess file:

########## Send Useless Traffic Away
#

RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^CN$ [NC,OR]
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^HK$ [NC,OR]
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^MO$ [NC,OR]
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^CN$ [NC,OR]
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^HK$ [NC,OR]
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^MO$ [NC,OR]
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^MY$ [NC,OR]
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^SG$ [NC,OR]
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^JP$ [NC,OR]
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^TH$ [NC,OR]
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^TW$ [NC]

RewriteRule ^(.*)$ http://www.somesiteurl.com [R,L]

#
##########

You may want to also take a look here:

"Redirecting Useless Traffic" article
ArtWilliams is offline   Reply With Quote
Old 2007-09-20, 01:25 AM   #4
Stephen
Internet! Is that thing still around?
 
Join Date: Sep 2007
Posts: 9
Quote:
Originally Posted by artwilliams View Post
This is what I use in my .htaccess file:
I've used similar code (but a longer list that included a few dozen high-fraud countries), and noticed surfers still getting through.

If you have a trade script like ePower Trader that uses an IP database, use it to filter your traffic more effectively than via htaccess;

try sending "unwanted" traffic to PasswordByPhone – they can turn Chinese traffic into cash.

Remember, lots of folks bad-mouth traffic from certain countries, but the problem is that they're trying to sell $29.95/mo. memberships to people that simply can't afford it, or trying to bill via credit cards to folks that don't have credit cards. PBP gets around this by billing in their currency, language and realistic price points.

There's no bad traffic.
Stephen is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:45 AM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc