How to protect your website against common attacks

Protect your web site against common attacks by adding the following commands to your .htaccess file

 

Add the following to the bottom of your .htaccess file

Log to your Web Management panel, select your domain, File Manager from left list, bring the mouse cursor over the file name .htaccess, click on the 3 dots and select edit.

 

# Protection against page-framing and click-jacking
Header append X-FRAME-OPTIONS "SAMEORIGIN"
# Protection against XSS attacks
Header set X-XSS-Protection "1; mode=block"
# Protection against content-sniffing
Header set X-Content-Type-Options 

 

Please note that some WordPress themes may be affected by page-framing and click-jacking protection.  Comment the line as per the following if your are having issues. 

 

# Header append X-FRAME-OPTIONS "SAMEORIGIN"

Was this answer helpful? 0 Users Found This Useful (0 Votes)