|   |   |   | ||||
| Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. | 
|    | 
| 
 | |||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. | 
|  | Thread Tools | 
|  05-25-2007, 11:40 AM | #1 | 
| Hmm Industry Role:  Join Date: Sep 2005 Location: On an endless road around the world for rock and roll. 
					Posts: 12,642
				 | 
				
				Blocking unwanted countries
			 What is the best method for blocking unwanted countries (for example russians) from accessing a site and how to do that? Redirecting certain ip ranges or browsers with their language? | 
|   |           | 
|  05-25-2007, 12:02 PM | #3 | 
| Confirmed User Join Date: Dec 2004 Location: Back in Blighty 
					Posts: 4,277
				 | We can send you a geo-ip redirect script.   We can process traffic from Russia, so you might want to consider sending such traffic to one of our consumer facing sites... | 
|   |           | 
|  05-25-2007, 12:30 PM | #4 | 
| there's no $$$ in porn Industry Role:  Join Date: Jul 2005 Location: icq: 195./568.-230 (btw: not getting offline msgs) 
					Posts: 33,063
				 | |
|   |           | 
|  05-25-2007, 12:33 PM | #5 | 
| Now choke yourself! Industry Role:  Join Date: Apr 2006 
					Posts: 12,085
				 | All of the above are good resources; as darksoul has mentioned mod_geoip is going to be one of your fastest means to redirect, and it loads directly into Apache, so all you need to do is have someone build it, then setup a 'banned countries' configuration for you. I have seen stability problems in the past with mod_geoip2 for Apache2, however. It will need to be loaded absolutely last, and does not play well with specific throttling and other handlers. 
				__________________ | 
|   |           | 
|  05-25-2007, 01:23 PM | #6 | 
| Registered User Join Date: Jun 2004 
					Posts: 94
				 | I put the IP blocks from countries in my .htaccess files and redirect them to a few different sites, depending on what mood I'm in that day. One of my sites, all spammers, and people from IP blocks that I don't want viewing the site, get's redirected to another site that's pop-up hell and spyware hell for all browsers. | 
|   |           | 
|  05-25-2007, 02:42 PM | #7 | 
| Hmm Industry Role:  Join Date: Sep 2005 Location: On an endless road around the world for rock and roll. 
					Posts: 12,642
				 | thanks guys!   | 
|   |           | 
|  05-25-2007, 02:44 PM | #8 | |
| Moo Moo Cow Join Date: Mar 2004 Location: Washington State 
					Posts: 14,748
				 | Quote: | |
|   |           | 
|  05-25-2007, 02:51 PM | #9 | 
| ex-TeenGodFather Industry Role:  Join Date: Nov 2001 Location: Suomi Finland Perkele 
					Posts: 20,306
				 | Remember that if you block say russians, you also block the potential webmasters from seeing the sites/checking galleries and whatnot. I have a few russian affiliates that I know and have worked for a long long time (not all of them are crooks). I bet they don't appreciate it. ...however, if you're planning this for something aside from 'sponsor' sites, like paysites or FHG's.. some apache mod_geoip works wonders. 
				__________________ ..and I'm off. | 
|   |           | 
|  05-25-2007, 03:09 PM | #10 | 
| Hmm Industry Role:  Join Date: Sep 2005 Location: On an endless road around the world for rock and roll. 
					Posts: 12,642
				 | I will remember that, well this site is targeted only for us customers and other countries couldn't use it anyway so generally I just want to prevent it a bit from stilling my content | 
|   |           |