password protect a specific URL

#1
The site is on dedicated server with no panel or anything, all done through the native litespeed panel. I need to password protect a single URL.

https://www.example/?cron_autoimport=true
that's not a physical file path I'm trying to protect, it's just that particular URL

cheers
 
Last edited by a moderator:

Pong

Well-Known Member
Staff member
#2
I am not 100% sure if you can do that or not, as far as I know, For normal URL, you can simply create a context at that Virtual host and set relm for password protection.

For such query string based URL, the situation could be more complicated. You can try something in .htaccess like this discussion but I did not test such a solution and there is no guarantee it works

https://stackoverflow.com/questions...uthentication-based-on-query-string-parameter
 
Top