My site is managed by Apache on Linux. In the base directory, there is the sub folder fill. In this subfolder, there is a php script: do.php
Here is my .htaccess:
AuthType Basic
AuthName 'Welcome back'
AuthUserFile /home/provider/mysite/fill/.htpasswd
Require valid-user
Here is my .htpasswd:
ab12:2yd32253zi7Nz2
When I go to http://mysite/fill, I am asked a username and a password. When I specify them (ab12 with the password), I login successfully and see the content of index.html located in this fill folder (i.e. http://mysite/fill/index.html). Then, I clear browsing history and all the passwords saved earlier. After that, when I run the script http://mysite/fill/do.php, I am NOT asked for any authentication.
The question: is it possible to ask for credentials when running http://mysite/fill/do.php? Any changes in htaccess?
Thank you.