MachPanel Knowledgebase

HOW TO:Protecting Your Website From ClickJacking

Rehan Waseem


This article provides information on how to Protect your Website from ClickJacking.

Applies To

This article applies to MachPanel v6 and above.

Steps and Procedure

To protect website from clickjacking, it is required to append a Content Security Policy header to the HTTP response with frame-ancestors directive sent by web server.

Custom header can be added to a website in IIS as shown below.



Inside ‘Value’ for ‘frame-ancestors’ multiple values can be specified separated by white space like below

Frame-ancestors ‘self’ ‘https://*’ ‘’ ‘https://*’;

For Machpanel add as below

frame-ancestors ‘self’ ‘https://*’ ‘’


Type: HOW TO
Level: Beginner
Last Modified: 2 Years Ago
Last Modified By: rehan_waseem
Article not rated yet.
Article has been viewed 989 times.
Also In This Category