Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-09-10T23:44:06.390Z
Answers.LastActivityDate: 2020-09-10T23:44:06.390Z
Answers.UserDisplayName: Brad Bell
Body: <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>
  
Tags: <craft2><security>
Title: How I add security header on the front-end on Craft CMS
ThreadText: # 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>
  
  
  ---
  
  