Support

Admin Tools

#42637 Access forbidden despite directory authorized in Admin tools

Posted in ‘Admin Tools for Joomla! 4 & 5’
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
6.0.2
PHP version
8.4.16
Admin Tools version
7.8.4

Latest post by nicholas on Saturday, 17 January 2026 04:11 CST

AlainR

After updating the Joomla website! 5 in Joomla! 6, the UP plugin (lomart.fr) no longer displays the PDF.

I checked the htaccess rules set by Admin Tools and tried several possibilities. The only thing that works is to disable frontend protection.

On another site, I have already used the permission of a folder or file but on this site it no longer works since Joomla! 6 (and I have not yet been able to migrate the other site to test it).

I tested the following rules:

  • Allow direct access to these files: plugins/content/up/actions/pdf/pdfjs/web/viewer.html
  • Allow direct access, except .php files, to these directories: plugins/content/up/actions/pdf/pdfjs/web
  • Allow direct access, including .php files, to these directories: plugins/content/up/actions/pdf/pdfjs/web

And always forbidden access as you can see by following the URL.

Thank you in advance for your help.

nicholas
Akeeba Staff
Manager

Change "Allow direct access, except .php files, to these directories" to plugins/content/up/actions/pdf .

Remove the entries from "Allow direct access to these files" and "Allow direct access, including .php files, to these directories".

Disable "Protect against common file injection attacks" since the argument to viewer.html is an unencoded URL which triggers this protection.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

AlainR

Thank you very much for your prompt answer!

I did it but the access is always forbidden. I Reset Htaccess Maker options and I set "Allow direct access, except .php files, to these directories" to plugins/content/up/actions/pdf  and disable "Protect against common file injection attacks" and the access is always forbidden.

nicholas
Akeeba Staff
Manager

I see the same files being blocked, which does not make sense given what we just did.

Did you click on Save & Create .htaccess? Clicking on Save Changes only updates the configuration in the database, it does not apply the changes to the site's .htaccess file.

If you already did that, do you have some kind of cache or CDN in front of your site? If so, you need to reset them to, otherwise they will be serving the previous state.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

AlainR

Yes, I clicked on Save & Create .htaccess.

No, (I think) I don't have a CDN and I clear the Joomla! cache.

As you write, I also don't understand why these rules don't work.

nicholas
Akeeba Staff
Manager

Can you send me a screenshot of your .htaccess Maker options?

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

AlainR

here you are. Thank you very much for your help and your analyze.

nicholas
Akeeba Staff
Manager

The "Allow direct access, except .php files, to these directories" entry must read exactly plugins/content/up/actions/pdf without a leading or trailing slash. You currently have a trailing slash.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

AlainR

You're right, I had it. I remove the ending trailing slash and save & create the new .htaccess file but the PDF is always forbidden.

nicholas
Akeeba Staff
Manager

Under Server Protection and right above Exceptions From Server Protection find the "Disable client-side risky behavior in frontend static content" and set it to No.

Reasoning: You have a .html file which loads arbitrary JavaScript to render the PDF. When the aforementioned option is enabled, it prevents JavaScript from running.

In the "Allow direct access, except .php files, to these directories" remove the plugins/content/up/actions/pdf and add 

  • plugins/content/up/actions 
  • plugins/content/up/assets

Reasoning: You have two subdirectories with static media files under the plugin's directory: actions and assets. Explicitly allowing both to serve static files will remove any possibility that the .htaccess file is blocking access to these files. This is a stronger permission than merely having the plugins directory in the "Frontend directories where file type exceptions are allowed".

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

AlainR

Thank you so much for your proposals and your explanations that allow me to follow you and learn at the same time. They don't work either.

I tried to completely open the plugin folder plugins/content/up but without more success. I also looked at the forum of lomart.fr but nobody seems to be facing this problem. And it seems to me it worked before the Joomla update! 6

nicholas
Akeeba Staff
Manager

Are you absolutely sure that if you turn Front-end Protection off this page you were having a problem with does work?

The reason I am asking is that adding a folder to the "Allow direct access, except .php files, to these directories" means that Front-end Protection is completely disabled for it, with the sole exception being .php files (which are not part of this problem anyway).

However, I am also noting that the URL used by the plugin has another URL being passed as a URL parameter. This is generally something which will trigger a server protection on most hosts. This would normally lead to a 403 Forbidden error. If your server is configured to use custom error pages but these files, as is the case on pretty much every site, do not exist you get a 404 error instead.

If the problem persists if you turn off the Front-end Protection –which I need you to retest right now so we are absolutely certain– we've been wasting our time trying to do something with Admin Tools; you'd have to contact your host and ask them what custom code you need to add to your .htaccess to disable this protection, or at least this particular rule. If the problem does persist, the it is something I can help further with.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

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!