Support

Admin Tools

#43542 403 Errors After Installing Admin Tools Pro

Posted in ‘Admin Tools for Joomla!’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
Joomla! 6.2.1 Stable
PHP version
8.4.28
Admin Tools version
Admin Tools Pro

Latest post by moira on Wednesday, 25 November 2026 09:29 CST

igora

Hello,
After installing Admin Tools Pro on our site https://tango-velours.org, we started experiencing errors (Error 403).

This happens with links generated by a content plugin.
For example, with the URL https://tango-velours.org/plugins/content/up/actions/pdf/pdfjs/web/viewer.html?file=https://tango-velours.org/docs/actus/tango-velours-calendrier-2026-2027-v9.pdf

In the Firefox console, the following appears:
Content-Security-Policy: The page’s settings prevented the execution of an embedded script (script-src-elem) because it violates the following directive: “script-src ‘none’”. Consider using a fingerprint (“sha256-ieoeWczDHkReVBsRBqaal5AFMlBtNjMzgwKvLqi/tSU=”) or a nonce. sandbox eval code:17:34
Content-Security-Policy: The page settings prevented the application of an embedded style (style-src-elem) because it violates the following directive: “default-src ‘self’”. Be sure to use a fingerprint (“sha256-vKC/3e+58wt3AEEnUImhhkZlNJYe2iGGM4zT9jQL6x0=”, requires “unsafe-hashes” for style attributes) or a nonce.

Additionally, JavaScript requests from our cookie manager, "tarteaucitron", are also blocked.
Attached image: firefox-console-tarteaucitron_error.png

Can you tell me how to configure Admin Tools to prevent these crashes?
Do I need to add a custom rule?

Please excuse the rough English in this message, which was translated from French.
Best regards,
Igor Andermann (site administrator)

moira

You do not need a custom WAF rule or WAF Exception. These blocks are consistent with the Server Protection and file injection features of the .htaccess Maker.

Adding the HTML file to "Allow direct access to these files" would not be enough. viewer.html itself already loads. The PDF viewer needs other files too, and the address with ?file=https://… is blocked by a different feature.

Go to Admin Tools, .htaccess Maker, and make these changes:

  1. Allow direct access, except .php files, to these directories: add these two lines (no leading or trailing slash):
    • plugins/content/up/actions/pdf/pdfjs
    • tarteaucitron
  2. Disable client-side risky behaviour in frontend static content: set to No.
  3. Protect against common file injection attacks: set to No.
  4. Click Save and create .htaccess in the toolbar.
  5. Clear your browser cache, or use a private window, and test both the PDF viewer and your cookie manager.

Steps 2 and 3 reduce your site's protection across more than the PDF viewer. Step 2 removes a restriction on scripts inside static files, such as HTML and SVG files, in your frontend directories. Step 3 turns off a filter on URLs passed in the address of your site's frontend pages.

What each change addresses

I requested some public URLs on your site and compared the results with the Admin Tools source code. I have not tested these changes on your site.

  • The cookie manager. The files I tried under /tarteaucitron/ return a 403 error. This is a directory in your site's root which Server Protection does not allow by default. The whole directory needs access, as it holds several files. This allows every file in it and its subdirectories, except .php files.
  • The PDF viewer's scripts. pdf.mjs, viewer.min.mjs and pdf.worker.mjs return a 403 error. The directory line for pdfjs allows them.
  • The Content-Security-Policy messages. viewer.html is sent with the header default-src 'self'; script-src 'none';, which stops its scripts. "Disable client-side risky behaviour in frontend static content" adds this header.
  • The ?file= address. viewer.html on its own loads. With ?file=https://tango-velours.org/… it returns a 403 error. With ?file=/docs/actus/… it loads. A full URL in the address is what "Protect against common file injection attacks" blocks.

If you still get a 403 error, rename your .htaccess file to .htaccess-admintools-bak, then rename htaccess.txt to .htaccess, and test again. Restore your original file afterwards. Tell us whether the error went away, and give us the exact address which failed. If it does not go away, the block is probably not coming from the .htaccess Maker.

Moira Fari

Support Specialist

🇬🇧English: native 🕐 My time zone is Asia / Nicosia
Kindly note that my replies are fully vetted by our developers.

igora

Hello,

Thank you for your reply.
I followed the suggested steps, and it seems to be working fine so far.

Best regards,
Igor

moira

You're welcome! We're always here to help.

Moira Fari

Support Specialist

🇬🇧English: native 🕐 My time zone is Asia / Nicosia
Kindly note that my replies are fully vetted by our developers.

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!