|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#16
|
|||
|
|||
|
The code I posted above at 10:39 PM is just fine. In your very first message, you said you can do one or the other but not both at a time, so basically you are having a typo error somewhere since you can't get back to your successful try earlier.
What you should do now is to ignore this message and start from scratch, then go back to this message and read the one at 10:39PM. I need to remind you about .website.com is NOT the HTTP_REFERER, it's a string of the REMOTE_HOST environment variable. So visitors coming from the WEBSITE of http://www.website.com has no affect to your "Allow from .website.com" line. |
|
#17
|
|||
|
|||
|
I am really confused, you said this
"I need to remind you about .website.com is NOT the HTTP_REFERER, it's a string of the REMOTE_HOST environment variable. So visitors coming from the WEBSITE of http://www.website.com has no affect to your "Allow from .website.com" line." I thought this is where I put the http referer. Do I put my website url here or? Where would I put the url's of the websites I want to gain access without authentication? Thanks, Mark |
|
#18
|
|||
|
|||
|
Start here -> http://www.apache.org/docs/mod/mod_setenvif.html#setenvif
Pay attention to this line -> SetEnvIf Referer www.mydomain.com intra_site_referral Then check here -> http://www.apache.org/docs/mod/mod_access.html#allowfromenv and replace the let_me_in example with intra_site_referral or whatever you like. |
|
#19
|
|||
|
|||
|
Thanks for the reply here is what we tried. Where it says website I put the address I want users to have access from with Authentication.
Satisfy any AuthUserFile /www/globill/.htpasswd AuthGroupFile /dev/null AuthName "Member's Area" AuthType Basic Require valid-user Order Allow,Deny Deny from all SetEnvIf Referer www.website.com Intra_site_referal Allow from env=intra_site_referal And we get an internal server error and this is what is in the log files. [Thu Oct 05 13:57:35 2000] [alert] [client 1.3.12] /export/home/~usr/private/.htaccess: SetEnvIf not allowed here What do you think? Thanks, Mark |
|
#20
|
|||
|
|||
|
>>SetEnvIf Referer www.website.com
>>Intra_site_referal This should be in one line, not two lines. >>Allow from env=intra_site_referal Note the "i"ntra, the i is case-sensitive. Also, the line order of yours doesn't make sense, please try something like this: ############################################ SetEnvIf Referer www.website.com good_host AuthName "Member's Area" AuthType Basic AuthGroupFile /dev/null AuthUserFile /www/globill/.htpasswd Require valid-user Allow from env=good_host Satisfy any ############################################ |
![]() |
| Viewing: Dev Shed Forums > System Administration > Security and Cryptography > Basic Autheniction & Allow Access |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|