Support

Admin Tools

#33869 Apply Security Headers

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
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by nicholas on Friday, 09 October 2020 02:07 CDT

easyconnect83

Hello,

there is something that surprises me with the application of security headers in the htaccess.

1) If i scan my website with this site https://securityheaders.com/ to check security headers. I am told that I am missing the following headers:

Content-Security-Policy, X-Frame-Options and X-Content-Type-Options.

In my htaccess file i have this lines :

  • Header always append X-Frame-Options SAMEORIGIN
  • Header set X-Content-Type-Options "nosniff"
  • Header always set Content-Security-Policy "script-src 'none'" (for SVG files)

2) For the tests if i install and activate this plugin HttpHeader

i scan headers with https://securityheaders.com/. In this case the headers are applied and I go green in the tests ...

Can I have an explanation?

Best regards.

nicholas
Akeeba Staff
Manager

When you are using .htaccess code, which is parsed by your web server, to add headers to all requests regardless of whether they go through Joomla or not the headers are not applied.

When you use a PHP plugin which adds the headers with PHP code (and only for the requests that go through Joomla) the headers are applied.

Therefore your web server, which is set up and maintained at the sole responsibility of the host you use to host your site, seems to ignore the Header lines. As a result the problem is something that your host is responsible for.

So, no, we can neither take responsibility nor answer for what a third party company is doing per our Terms of Service and common sense. Please ask this question to your host. I am closing this ticket as out of scope of our support services.

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!