|
|
2005-01-17, 08:12 AM | #1 |
Are you sure this is the Sci-Fi Convention? It's full of nerds!
|
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. |
2005-01-17, 09:10 AM | #2 |
The Original Greenguy (Est'd 1996) & AVN HOF Member - I Crop Pics For Thumbs In My Sleep
|
You probably need what DrBizzaro is looking for
http://www.greenguysboard.com/board/...threadid=15325 |
2005-01-17, 10:32 AM | #3 |
Are you sure this is the Sci-Fi Convention? It's full of nerds!
|
Yeah...I saw that already, thanks. I'm not really looking to geo redirect ~ more like banning a domain from sending traffic.
|
2005-01-17, 04:03 PM | #4 |
Bonged
Join Date: Mar 2003
Location: BrisVegas, AUSTRALIA
Posts: 4,882
|
HTH
http://www.greenguysboard.com/board/...ght=modrewrite http://www.greenguysboard.com/board/...ght=modrewrite DD
__________________
Old Dollars >>>> Now with over 90 Hosted Free Sites <<<< DangerDave.com.au - Adult Links to Free Porn |
2005-01-17, 08:00 PM | #5 |
Subversive filth of the hedonistic decadent West
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
|
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. |
2005-01-17, 10:14 PM | #6 |
Banned
Join Date: Oct 2003
Location: About to be evicted!!!!
Posts: 4,082
|
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.
|
2005-01-18, 06:15 AM | #7 |
Are you sure this is the Sci-Fi Convention? It's full of nerds!
|
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. |
|
|