Password Protecting Media

an additional solution that may work and require no coding is to insert the PDF into a post and just have the post protected. Then insert the post onto the page

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)