| 
		
			
			
				
			
			
				 
			
			
				
			
		 | 
		
			
			
				 
			
				
			
		 | 
	||||
| 
				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 | 
| 
			
			 | 
		#1 | 
| 
			
			
			
			 rockin tha trailerpark 
			
		
			
				
			
			
			Industry Role:  
				Join Date: May 2001 
				Location: ~Coastal~ 
				
				
					Posts: 23,088
				 
				
				
				
				 | 
	
	
	
	
		
			
			 
				
				htaccess help!!!
			 
			Heres what my htaccess looks like on a search engine cloaked domain i have going to a sponsor 
		
	
		
		
		
		
			RewriteEngine on RewriteCond %{HTTP_HOST} ^domain.com$ [OR] RewriteCond %{HTTP_HOST} ^www.domain.com$ RewriteRule ^(.*)$ http://spsonsor.com/?111111 [R=301,L] Now what i need to do, is block out all .gov, .us, .org & anything with the prefix k12....its part of my campaign to keep kids & people using public computers off my porn sites. So how would i add that to my htaccess? 
				__________________ 
		
		
		
		
	
	__________ Loadedca$h - get sum! - Revengebucks - mmm rebills! - webair (gotz sErVrz)  
			 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 The Dirty Frenchman 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Nov 2005 
				Location: Lost Angeles 
				
				
					Posts: 8,904
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 order allow,deny 
		
	
		
		
		
		
		
		
			
		
		
	
	deny from .gov deny from .us deny from .k12 (im not sure where the k12 is in the IP) allow from all To block a specific IP, just type in the full IP address - e.g. 192.168.1.1 To block a range of IP's, use a partial IP address - e.g. 192.168.1 To block a country, type in the tail extension - e.g. .au mind you, this isnt going to block anything if thier IP doesnt reverse correctly  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 rockin tha trailerpark 
			
		
			
				
			
			
			Industry Role:  
				Join Date: May 2001 
				Location: ~Coastal~ 
				
				
					Posts: 23,088
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 yea...i don't know shit about linux man 
		
	
		
		
		
		
		
	
	can someone write it out for me?  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#5 | |
| 
			
			
			
			 The Dirty Frenchman 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Nov 2005 
				Location: Lost Angeles 
				
				
					Posts: 8,904
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#6 | |
| 
			
			
			
			 rockin tha trailerpark 
			
		
			
				
			
			
			Industry Role:  
				Join Date: May 2001 
				Location: ~Coastal~ 
				
				
					Posts: 23,088
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 Viva la vulva! 
			
		
			
				
			
			
			Join Date: Mar 2003 
				Location: you can't please everyone, so you got to please yourself 
				
				
					Posts: 16,557
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 I use this: 
		
	
		
		
		
		
			
		
		
		
		
	
	RewriteCond %{REMOTE_HOST} .*\.gov$ [NC,OR] RewriteCond %{REMOTE_HOST} .*\.us$ [NC,OR] RewriteCond %{HTTP_REFERER} .*\.gov$ [NC,OR] RewriteCond %{HTTP_REFERER} .*\.gov/.* [NC,OR] RewriteCond %{HTTP_REFERER} .*\.us$ [NC,OR] RewriteCond %{HTTP_REFERER} .*\.us/.* [NC] RewriteRule .* http://www.www-web.com/ [R,L]  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 rockin tha trailerpark 
			
		
			
				
			
			
			Industry Role:  
				Join Date: May 2001 
				Location: ~Coastal~ 
				
				
					Posts: 23,088
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 so would it be...... 
		
	
		
		
		
		
		
	
	RewriteEngine on RewriteCond %{HTTP_HOST} ^domain.com$ [OR] RewriteCond %{HTTP_HOST} ^www.domain.com$ RewriteRule ^(.*)$ http://spsonsor.com/?111111 [R=301,L] RewriteCond %{REMOTE_HOST} .*\.gov$ [NC,OR] RewriteCond %{REMOTE_HOST} .*\.us$ [NC,OR] RewriteCond %{HTTP_REFERER} .*\.gov$ [NC,OR] RewriteCond %{HTTP_REFERER} .*\.gov/.* [NC,OR] RewriteCond %{HTTP_REFERER} .*\.us$ [NC,OR] RewriteCond %{HTTP_REFERER} .*\.us/.* [NC] RewriteRule .* http://www.www-web.com/ [R,L]  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#9 | 
| 
			
			
			
			 rockin tha trailerpark 
			
		
			
				
			
			
			Industry Role:  
				Join Date: May 2001 
				Location: ~Coastal~ 
				
				
					Posts: 23,088
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 bump bump 
		
	
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#10 | |
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Feb 2002 
				Location: Montreal 
				
				
					Posts: 1,286
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#11 | 
| 
			
			
			
			 rockin tha trailerpark 
			
		
			
				
			
			
			Industry Role:  
				Join Date: May 2001 
				Location: ~Coastal~ 
				
				
					Posts: 23,088
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 anyone here able to give me a straight answer? 
		
	
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#12 | 
| 
			
			
			
			 rockin tha trailerpark 
			
		
			
				
			
			
			Industry Role:  
				Join Date: May 2001 
				Location: ~Coastal~ 
				
				
					Posts: 23,088
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 damn this sucks 
		
	
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 |