Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Security Headers

Featured Replies

I'm researching security headers and made some notes, and wanted to confirm I have it down right. Basically I am wanting to make sure I have the text right as well as implementing each via htaccess as opposed to a meta tag? Am I missing anything massive? I am  running a static website (html / css / javascript w/o a web-based cms like WordPress). Thoughts? Particularly etags and the last entry about leaked php version?

eTags
ETag: If-None-Match: "33a64df551425fcc55e4d42a148795d9f25f89d4"

Security Headers -
 
CSP: Frame-ancesetors
     Header always append X-Frame-Options SAMEORIGIN via htaccess
or
     Content-Security-Policy: frame-ancestors 'none';
     Content-Security-Policy: frame-ancestors 'self' https://www.example.org;

Security Headers – X-Content-Type: nosniff
     Header set X-Content-Type-Options nosniff via htaccess

Strict-Transport-Security HSTS 
     Strict-Transport-Security: max-age=63072000; includeSubDomains; preload 

CPS Content Security Policy
     Header set Content-Security-Policy “script-src 'none';” via htaccess (preferred)
or 
     Content-Security-Policy: script-src 'self'; img-src ‘self’; via htaccess (allows images and js) 
Or 
     <meta http-equiv="Content-Security-Policy" content="script-src 'none';"> 

Leaked PHP version
?
 

  • 2 weeks later...
  • Author

What security headers work with a non-wordpress website hosted with GoDaddy on Linux? I tried the below and got an error. Thoughts? 

#Security Headers Linux
<IfModule mod_headers.c>
Header set X-XSS-Protection "1; mode=block"
Header always append X-Frame-Options SAMEORIGIN
Header set X-Content-Type-Options nosniff
Header set Content-Security-Policy "default-src 'self'"
</IfModule>


Rob

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.