![]() |
|
[PHP] PDF loads after password validation - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Web Development (https://hackforums.net/forumdisplay.php?fid=183) +---- Thread: [PHP] PDF loads after password validation (/showthread.php?tid=6059262) |
PDF loads after password validation - Quality_k1nG - Mar 23, 2020 Hey guys, I need your help I wanted to lock my pdf behind the php password locker kind of thing, Actually I am using pdf.js (library) to load the pdf into the browser (with the help of youtube tutorials) and its successfully loading but I need to put the password locker I tried it but its not working Can anyone please help? thanks RE: PDF loads after password validation - newQuery - Mar 23, 2020 You could simply use a .htaccess & .htpasswd RE: PDF loads after password validation - Nachfolger - Mar 25, 2020 If you're just loading the PDF, you could cut the pdf.js library out completely. Most browsers have native means to displaying the PDF (Usually through the built in pdf.js library). Regardless, what methods have you tried? It's not that complicated to create a auth mechanism with PHP. RE: PDF loads after password validation - Quality_k1nG - Mar 27, 2020 Everything is solved thanks guys , especially Nachfolger for reading the question carefully. |