I am having a personal portfolio website and i have a some pdf files like
Some file
I dont want everyo
Create a php file say, download.php and link to that file instead. You can check for correct password there, and if it's correct, you can write the contents of the PDF file to the response.
download.php