Page 2 of 2 First 12
  • Jump to page:
    #16
  1. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    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.
  2. #17
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    10
    Rep Power
    0
    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
  4. #18
  5. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    Start here -> http://www.apache.org/docs/mod/mod_s....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_a...l#allowfromenv and replace the let_me_in example with intra_site_referral or whatever you like.
  6. #19
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    10
    Rep Power
    0
    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

  8. #20
  9. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    >>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
    ############################################
Page 2 of 2 First 12
  • Jump to page:

IMN logo majestic logo threadwatch logo seochat tools logo