Support » Plugin: PDF.js Viewer » 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 : —> see the content

    If logged-out user type the URL on the browser —-> redirected to 404

    Thanks in advance for your reply.


    • This topic was modified 2 months, 3 weeks ago by momosampaii.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter momosampaii


    By the way, the URL on the above message is just for the example.

    Thanks in advance for you reply.

    Plugin Author Thomas McMahon


    Since the viewer exists outside of WordPress, I don’t think this is possible without custom development. You could use a plugin like Members to prevent a page from loading for the user, but when linking directly to the full screen PDF viewer I’m not sure how to go about that at this time. I’d have to think about it and it’d probably involve a lot more dev time than I have right now.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.