Complete guide to Click jacking and its preventive measures

Amar Balu
The Fresh Writes
Published in
4 min readJan 25, 2023

--

What is Clickjacking?

Clickjacking is one of the most common ways to attack to website. This attack is when an attacker tricks you into clicking on a malicious link. With clickjacking, an attacker can take over your browser and navigate to malicious websites without your permission.

Image Source : Freepik

How to avoid it?

To prevent clickjacking, you can use the Javascript security feature called clickjacking prevention. This feature blocks malicious links from being executed by the browser.

Using Brower

To use clickjacking prevention, you can enable it in your browser.

In Chrome

To enable clickjacking prevention

  1. Click on the 3 lines in the top right corner of the browser window.
  2. Then, click on the Settings icon.
  3. On the Settings page, click on the Advanced button.
  4. In the Advanced dialog box, click on the Security tab.
  5. In the Security dialog box, click on the Content Security Policy button.

In the Content Security Policy dialog box, click on the Enable clickjacking prevention button.

--

--

Amar Balu
The Fresh Writes

I'm a front-end developer. I love React and Redux, Java, and Data Science. I write code for fun!. Join our publication : https://medium.com/thefreshwrites