restricted access of the viewer to logged-in users
-
Hello,
I’m using PDFJS Viewer plugin for WordPress. For security purpose i’m looking for a way to make restricted access of the viewer only to logged-in users. I want to make the no logged-in users redirected to 404 page if they try to consulte the viewer URL.
example :
If the user is logged-in and type the below URL :
website.com/wp-content/plugins/pdfjs-viewer-shortcode/pdfjs/web/viewer.php?file=/wp-content/uploads/2021/06/example.pdf&dButton=false&pButton=false&oButton=false&sButton=true#zoom=auto&pagemode=none —> see the content
If logged-out user type the URL on the browser —-> redirected to 404
Thanks in advance for your reply.
Regards.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘restricted access of the viewer to logged-in users’ is closed to new replies.