How to protect from clickjacking in WordPress
1: Check whether your WordPress website is vulnerable to clickjacking.
Website: https://tools.walikhankakaro.com/clickjacking-test-online/

2: So, my WordPress website is vulnerable to clickjacking.
3: Open the .htaccess file in the Hosting panel or File Manager.

4: Paste this code into the .htaccess file.
Code: # X-Frame-Options
<IfModule mod_headers.c>
Header always set X-Frame-Options “SAMEORIGIN”
Header always set Content-Security-Policy “frame-ancestors ‘self’;”
</IfModule>

5: Know, recheck your website.
Website: https://tools.walikhankakaro.com/clickjacking-test-online/


