Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Sep 02, 2009 5:03 pm 
Offline
Senior Member
User avatar

Joined: Mon Jul 21, 2008 1:26 pm
Posts: 171
Website: http://www.rejecttheherd.net
Location: Seattle
I wanna redirect incoming networks, not just specific IP's with Apache, would this be correct?

Code:
RewriteEngine On
RewriteCond %{REMOTE_ADDR} ^192\.168\.0\.0$
RewriteRule .* http://www.google.com

_________________
Image
Where "Thought Crime" is commited
http://www.rejecttheherd.net


Top
   
PostPosted: Wed Sep 02, 2009 7:28 pm 
Offline
Senior Member

Joined: Mon Feb 02, 2009 1:43 am
Posts: 67
Website: http://fukawi2.nl
Location: Melbourne, Australia
I think it would need to be more along the lines of the following since it's a regex comparison, and Apache isn't aware of the CIDR / network address in this module.

Code:
RewriteEngine On
RewriteCond %{REMOTE_ADDR} ^192\.168\.0\.[0-9]{1,3}$
RewriteRule .* http://www.google.com


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group