httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rondon <>
Subject [users@httpd] .htaccess
Date Thu, 14 Sep 2017 22:27:36 GMT
Hi Folks,

Sorry to bother you.
My website is using apache at Dreamhost.

I'm authenticating using a require valid-user at .htaccess
But I need to add more directives to authenticate the access by Referer.

If the user comes from a specific referer, the user doesn't have to receive
the authentication box and bypass the authentication.

Is that possible?

My .htaccess file is:

AuthName "My Security Area"
AuthType Basic
AuthUserFile  /myusersfilepath/
require valid-user

ErrorDocument 401 /error.html

I'd like to add authentication by Referer
if Referer or host domain.the extension then there is no need for
the user goes in with the authentication box.

Can you help with that?

Thanks in advance and waiting for your response



Your life is shaped by your mind and you become what you think.
Dhampada - Twin Verses.

View raw message