Applying basic auth to certain parameter

巧了我就是萌 提交于 2020-05-17 06:46:09

问题


I want to protect an access that contains certain parameter using basic auth in .htaccess file.

For example, I want to require Basic Auth for an access to

/test.html?protected=yes

and allow access to

/test.html?protected=no

without basic auth.

Is this possible?

来源:https://stackoverflow.com/questions/61219950/applying-basic-auth-to-certain-parameter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!