<p>Since you mentioned <code>mod_headers</code>, you can add headers at the web-server level using <code>.htaccess</code> and Apache's <code>header set</code> command: <a href="https://httpd.apache.org/docs/2.4/mod/mod_headers.html" rel="nofollow noreferrer">https://httpd.apache.org/docs/2.4/mod/mod_headers.html</a></p>

CC BY-SA 4.0
2020-09-10T23:44:06.390Z
2020-09-10T23:44:06.390Z
Brad Bell
<p>I have Mod_headers installed and active on my server, I know that Craft adds some headers from PHP but only for Control Panel requests. How can I add security headers to the front-end?</p>
<p>Thank you</p>

<craft2><security>
How I add security header on the front-end on Craft CMS
# How I add security header on the front-end on Craft CMS

(Asked by: username_0 on 2020-09-10)

I have Mod\_headers installed and active on my server, I know that Craft adds some headers from PHP but only for Control Panel requests. How can I add security headers to the front-end?

Thank you

**Tags:** craft2, security


---

## 1 answers

### Answer by username_1 on 2020-09-10. Score: 1

Since you mentioned `mod_headers`, you can add headers at the web-server level using `.htaccess` and Apache's `header set` command: <https://httpd.apache.org/docs/2.4/mod/mod_headers.html>


---

