Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Programming & Scripting (http://www.greenguysboard.com/board/forumdisplay.php?f=15)
-   -   Redirect Chinese Traffic (http://www.greenguysboard.com/board/showthread.php?t=42771)

Mr Spock 2007-09-16 03:28 AM

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 2007-09-17 11:29 AM

|huh

ArtWilliams 2007-09-17 12:10 PM

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

Stephen 2007-09-20 01:25 AM

Quote:

Originally Posted by artwilliams (Post 365921)
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.


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

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