I am having a personal portfolio website and i have a some pdf files like
Some file
I dont want everyo
Follow @rsmith84's tips but make sure you block folder access:
Apache .htaccess file
Deny from all
IIS web.config file
Thenh allow delivery only with a PHP file. Verify user and then do readfile('/protectd/file/path') from your protected folder.
readfile('/protectd/file/path')