How do I bypass Authentication of .htaccess using PHP?

sonotleet

New member
I have a page:
________________________________
<html>
<body>

<a href="protected/example.docx">
Prompt
</a>

<br/><br/>

<a href="dl.php">
No Prompt
</a>

</body>
</html>
____________________________

I've set the .htaccess so that when I click on the "Prompt" link, I'll be prompted to log in to download.

What I want is to be able to click on the second link, "No Prompt" and automatically download the same file. I want that php page to bypass the authentication prompt and go straight to download.

Does anyone know how I can do that?
 
Back
Top