How to protect from clickjacking in WordPress

How to protect from clickjacking in WordPress

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/

How to protect from clickjacking in WordPress 1

2: So, my WordPress website is vulnerable to clickjacking.

3: Open the .htaccess file in the Hosting panel or File Manager.

How to protect from clickjacking in WordPress 2

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>

How to protect from clickjacking in WordPress 3

5: Know, recheck your website.

Website: https://tools.walikhankakaro.com/clickjacking-test-online/

How to protect from clickjacking in WordPress 4

How to Connect Ahrefs to WordPress Website

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top