Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   General Business Knowledge (http://www.greenguysboard.com/board/forumdisplay.php?f=10)
-   -   How do I... (http://www.greenguysboard.com/board/showthread.php?t=15398)

CelticTiger 2005-01-17 08:12 AM

How do I...
 
How do I setup .htaccess to redirect foreign bandwidth thieves and send them somewhere else? I'm getting pounded by some useless traffic which is eating up some serious bandwidth.

Cheers.

Greenguy 2005-01-17 09:10 AM

You probably need what DrBizzaro is looking for :)
http://www.greenguysboard.com/board/...threadid=15325

CelticTiger 2005-01-17 10:32 AM

Yeah...I saw that already, thanks. I'm not really looking to geo redirect ~ more like banning a domain from sending traffic.

DangerDave 2005-01-17 04:03 PM

HTH

http://www.greenguysboard.com/board/...ght=modrewrite
http://www.greenguysboard.com/board/...ght=modrewrite

DD

Cleo 2005-01-17 08:00 PM

I found this in a folder of web clippings that I keep.

I haven't tried it myself. It looks like PHP code to me so I would guess that the page needs the php extension.

$user_lan = $HTTP_ACCEPT_LANGUAGE;

/******
language code | language
------------------------------------
ar | Arabic
cs | Czech
da | Danish
de | German
el | Greek
en | English
es | Spanish
fi | Finnish
fr | French
hu | Hungarian
it | Italian
jp | Japanese
nl | Dutch
no | Norwegian
pl | Polish
pt | Portuguese
ro | Romanian
ru | Russian
sr | (Latin) Serbian
sv | Swedish
th | Thai
tr | Turkish
zh | simplified Chinese
zh-tw | traditional Chinese
*********/

if($user_lan=='fr') {
## French
$redir_url = "http://www.frenchsponsor.com";

} elseif($user_lan=='es') {
## Spanish
$redir_url = "http://www.spanishsponsor.com";

} elseif($user_lan=='de') {
## German
$redir_url = "http://www.germansponsor.com";

} elseif($user_lan=='it') {
## Italian
$redir_url = "http://www.italiansponsor.com";

} elseif($user_lan=='ar') {
## Other Non-Us Languages
$redir_url = "http://www.othersponsor.com";

## US traffic or Rest of world not defined above
} else {
$redir_url = "http://www.yourmainurl.com";

}

header("Location: $redir_url");
exit;

?>

EXPLAINING THE ABOVE
I listed as many country codes as I could but I left out a few that I couldn't
find. I know UK is not on there but I believe that one to be 'en-uk'...Anyway
basically you can redirect surfers from ANY country to the URL of your choice,
and just let the US surfers through to your webpages.

ecchi 2005-01-17 10:14 PM

RE : 'I'm not really looking to geo redirect' Maybe you should look into this, there is a lot of money to be made sending non-English speaking surfers to sponsors who run sites in their language. I used to get a lot of Asian traffic dumped on one of the sites I ran link exchanges with. I started sending it to a sponsor that sold to Japan, China Korea, etc and was making almost as much money from that as I was from the English speaking surfers to that site. Oh, and my method of redirect was simple. Little 80 X 60 buttons with each country's flag on it, the surfer had to click on the flag to go to the sponsor. If I was using something more advanced I would probably have made more money from the Asian traffic than from the English speaking traffic.

CelticTiger 2005-01-18 06:15 AM

Thanks for the links DD.
Cleo ~ I'll save that snippet of code for future endeavours.
ecchi ~ I did think about that but I thought I'd use the traffic as a boost to a new tgp and help get trades going etc.


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

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