新視野網頁設計有限公司

一站式、性價比、本地Wordpress製作

聯絡我們

香港九龍荔枝角長裕行11號定豐中心10樓7室

Rm.7, 10/F., Sterling Centre, No.11 Cheung Yue Street, Lai Chi Kok, Kln., HK

電郵: [email protected]

電話: 53849486 / 21935050

查詢電話: 53849486 / 21935050

Image Alt
 . Wordpress分享  . Security Headers code for WordPress

Security Headers code for WordPress

IMPORTANT!
Before editing the .htaccess file, it is best practice to save a copy of the original .htaccess file locally just in case anything goes wrong and you have a previous version to go back to.

 

4. Copy and paste this code at the bottom of your .htaccess file:​

# OCTAVE Security Headers
Header always set Strict-Transport-Security: “max-age=31536000” env=HTTPS
Header always set Content-Security-Policy “upgrade-insecure-requests”
Header always set X-Content-Type-Options “nosniff”
Header always set X-XSS-Protection “1; mode=block”
Header always set Expect-CT “max-age=7776000, enforce”
Header always set Referrer-Policy: “no-referrer-when-downgrade”
Header always set X-Frame-Options: “SAMEORIGIN”
Header always set Permissions-Policy: “geolocation=(); midi=();notifications=();push=();sync-xhr=();accelerometer=(); gyroscope=(); magnetometer=(); payment=(); camera=(); microphone=();usb=(); xr=();speaker=(self);vibrate=();fullscreen=(self);”
# End OCTAVE Security Headers

0/5 (0 Reviews)
0/5 (0 Reviews)