I have a site www.abc.domain.com, I protected it with .htpasswd. Now I have other www.domainname.com that contains a file callback.php, it requests to www.abc.domain.com. How do I write .htaccess file for both protecting www.abc.domain.com & allow file *.php from outside to access this secure folder? I have many callback.php around the web, in any domain, any hosting.
Thank you
Modify your callback scripts to access the domain with the credentials.
Another easy way would be to disable the protection for the IPs of the other hosts.