GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   .htaccess question (https://gfy.com/showthread.php?t=881412)

TheDA 01-14-2009 05:57 AM

.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>


WeirdHomer 01-14-2009 06:05 AM

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>


fris 01-14-2009 06:06 AM

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


sortie 01-14-2009 06:07 AM

What they said.

TheDA 01-14-2009 06:09 AM

OK thanks guys. I might just use that. I don't really need the redirect anyway.

Cash 01-14-2009 11:41 AM

http://wiki.dreamhost.com/.htaccess
http://wiki.dreamhost.com/Htaccess
http://wiki.dreamhost.com/Preventing_hotlinking


All times are GMT -7. The time now is 01:53 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123