PDA

View Full Version : .htaccess problems


Sabertooth
06-25-2001, 11:51 PM
I have .htaccess file like this:

deny from all
allow from 194.97.59.0/24 (255.255.255.0)
allow from 195.8.107.0/24 (255.255.255.0)
allow from 195.152.176.0/24 (255.255.255.0)
allow from 195.242.60.0/24 (255.255.255.0)
allow from 198.143.15.0/24 (255.255.255.0)
allow from 202.139.84.0/25 (255.255.255.128)
allow from 210.176.142.64/26 (255.255.255.192)
allow from 216.20.193.0/25 (255.255.255.128)
AuthUserFile /usr/apache/vhosts/yaddayadda.net/httpdocs/members/.htpasswd
AuthGroupFile /dev/null
AuthName "yaddayadda.net: Members Area"
AuthType Basic

require valid-user

<Files .*>
order allow,deny
deny from all
</Files>
satisfy any

It's fine, everything works...but how do I allow access, let's say from http://www.kjasasdckj.com/members/fuckmyhead.html

eXtremal
06-26-2001, 02:13 AM
I guess what you mean is how do you allow access to the surfer refered by http://www.kjasasdckj.com/members/fuckmyhead.html.

Then this is the trick:

SetEnvIfNoCase Referer www\.kjasasdckj\.com\/members\/fuckmyhead\.html allowed

deny from all
.....
....
allow from env=allowed

Sabertooth
06-26-2001, 06:22 AM
Thanks,
But it didn't work, it still asked user and pass...
I have redhat 7.0
Could that do something?

eXtremal
06-26-2001, 08:25 AM
<font face="Verdana, Arial" size="2">Originally posted by Sabertooth:
Thanks,
But it didn't work, it still asked user and pass...
I have redhat 7.0
Could that do something?</font>

u shoud remove the line
require valid-user :-)
so it won't ask it anymore