![]() |
![]() |
![]() |
||||
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 |
Confirmed User
Industry Role:
Join Date: May 2006
Posts: 4,665
|
.htaccess question
How do I change this so that I can add additional IP ranges that are allowed access.
Code:
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REMOTE_ADDR} !^66\.249\. RewriteRule .* http://www.domain.com/ [R,L] </IfModule> |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: Aug 2007
Location: Interwebs
Posts: 806
|
Do you mean this?
Code:
<Limit GET POST PUT> order deny,allow deny from all allow from 10.1.0.0/16 allow from 80.0.0/8 </Limit> |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,372
|
never seen it done that way, i would just use
Code:
order deny,allow deny from all allow from 66.249. allow from .isp.com
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Mar 2007
Posts: 7,771
|
What they said.
__________________
![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Industry Role:
Join Date: May 2006
Posts: 4,665
|
OK thanks guys. I might just use that. I don't really need the redirect anyway.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Click on my TCG signature
Join Date: Feb 2002
Posts: 20,825
|
http://wiki.dreamhost.com/.htaccess
http://wiki.dreamhost.com/Htaccess http://wiki.dreamhost.com/Preventing_hotlinking
__________________
$9.95/month for 15000 GB bandwidth monthly, unlimited (sub)domains and MySQL5, PHP4/5, 500 GB disk storage! ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |