I come to you for assistance

Diablo Escobar

Contributor
Veteran XX
Running Apache Server 1.3.6 for Mas OS X server

trying to setup referrer checks with .htaccess files


changed line in apache.comf to say

AllowOverride Limits

and made .htaccess file which reads:

order deny,allow
deny from all
allow from lkdjfla.bc.edu (lkdjfla being the sites name)

when i put it in folder like this, it denies access to everyone, including if it try going from the correct site

If i change it to allow .bc.edu it blocks nobody at all, anyone can get there

if i put <limit> tags around it all, it gives a 500 server error

anyone have any ideas?
 
i forgot to add, when i put it in folder denying from alkdj.bc.edu, it denies everyone 403 forbidden, so it seems like its working, just not working right.
 
Try this

order allow,deny
allow from lkdjfla.bc.edu (lkdjfla being the sites name)
deny from all
 
perhaps i should restart the apache server because i changed apache.conf?

Also, apache's website says i can just put these directives into the .conf file, any of you have much experience with this?
 
From what I know Plagu3's advice should work. The order of the commands should affect how it blocks/doesnt block stuff.
 
Back
Top