Protect your website from Clickjacking attack by implementing the X-Frame-Options header

X-Frame-Options Security Headers for Your Website

The X-Frame-Options security header helps modern web browsers protect your visitors against clickjacking threats. This can be implemented to use DENY or SAMEORIGIN to allow your own website to use iframes. here this example for WordPress sites

1st method is edting wp-config.php

Edit the wp-config.php file and add the following line

header('X-Frame-Options: SAMEORIGIN');

The second method is using the .htaccess file

Edit the .htaccess file and add the following line Header set X-Frame-Options "SAMEORIGIN"



enjoy 🙂

Related Post

Leave a Reply