Pdf files: This content is blocked. Contact site owner to fix the issue

Symptoms 

Unable to open the pdf file included in the test when taking the test with proctoring. An error message appears: "This content is blocked. Contact site owner to fix the issue".

The problem is shown in the screenshot below.

Causes

When using the sandbox attribute with iframes, certain plugins and functionalities may be disabled, and this can affect the rendering of PDF files in some browsers like Chrome. PDF rendering in browsers often relies on plugins or external viewers, so if the sandboxed iframe restricts plugin functionality, the PDF may not render properly.

Solution

There are 3 solutions:

  1. Open the link in a new tab.
    Note: Test-takers should be informed about this.
    Here are the steps to open a link in a new tab:

    1. Right-click on the PDF document link.
    2. From the context menu that appears, select "Open in a new tab" or "Open link in new tab."
    3. The PDF document will now open in a new tab in the web browser.
  2. Append the following path to the link: https://docs.google.com/viewer?url=
    Here is the example:
    https://docs.google.com/viewer?url=https://lms.ru/ent/files/exam.pdf
    Where https://docs.google.com/viewer?url= + https://lms.ru/ent/files/exam.pdf = https://docs.google.com/viewer?url=https://lms.ru/ent/files/exam.pdf
  3. Force the link to open in a new tab by adding attributes.
    Note: This should be done by the web server administrator.
    Here are the examples:
    • to open in a new tab: <a href='link-to.pdf' target='_blank'>
    • to download: <a href='link-to.pdf' download>

 These options will provide a better user experience and ensure that the PDF is displayed correctly.