TTemp90
T
← Back to BlogPrivacy

What Is Clickjacking? Hidden Click Attacks

Clickjacking explained: how attackers trick you into clicking hidden elements, what it can do, and how sites and users defend against it.

What Is Clickjacking? Hidden Click Attacks

What Is Clickjacking?

Clickjacking is a web attack that tricks you into clicking something different from what you think you are clicking — by hiding or disguising the real target of your click. The name combines "click" and "hijacking": your click is hijacked to perform an action you did not intend. Through clever layering of web elements, an attacker can make you click a hidden button or link while you believe you are clicking something harmless. This guide explains what clickjacking is, how it works, what it can do, and how to defend against it, in plain terms.

How Clickjacking Works

Clickjacking relies on deceiving you about what you are clicking:

Hidden or disguised elements: The attacker overlays or hides a target element (such as a button from another site) underneath or on top of what you see, often using transparent layers.

You click what you see, but trigger what is hidden: You think you are clicking a visible, harmless element (like a "play" button or "claim prize" button), but your click actually lands on the hidden element the attacker wants you to activate.

Using framing: A common technique loads a legitimate site invisibly in a frame over a decoy, so your clicks on the decoy actually click the legitimate site's controls — for example, clicking a hidden "confirm" or "like" button.

The deception: The key is that your visual perception is manipulated so your click does something other than what you intended.

What Clickjacking Can Do

Clickjacking can cause various unintended actions:

Unintended actions on your accounts: Tricking you into clicking buttons that change settings, make purchases, post content, or grant permissions on sites where you are logged in.

Granting permissions: Tricking you into approving permissions or authorizations (e.g., approving access requests).

Social media manipulation: "Likejacking" tricks you into liking, following, or sharing without intending to.

Enabling other attacks: Clickjacking can be combined with other techniques, for example tricking you into actions that further an attack.

The common thread is causing you to perform actions you did not intend on sites you are using.

How Websites Defend Against Clickjacking

Clickjacking is primarily defended at the website level:

Frame protection headers: Websites can use security headers (such as X-Frame-Options or Content-Security-Policy frame-ancestors directives) that prevent their pages from being loaded in frames on other sites — defeating the common framing technique. This is the main defense.

Frame-busting techniques: Code that prevents a page from being framed by other sites.

UI confirmation: Requiring explicit confirmation for sensitive actions can reduce the impact.

For developers: Implementing proper frame protection on sensitive pages (especially those with important actions) is the key defense against clickjacking.

How Users Can Reduce Risk

While clickjacking is mainly a site-side issue, users can reduce risk:

Keep your browser updated: Modern, updated browsers have some protections and respect site frame-protection headers.

Be cautious with suspicious sites: Clickjacking requires luring you to a malicious page. Be cautious with suspicious sites, links, and too-good-to-be-true offers that might host clickjacking.

Be wary of unexpected prompts: Be cautious if clicking something produces unexpected results or prompts.

Log out of sensitive accounts: Being logged out of sensitive accounts when not using them reduces what a clickjacking attack could do through your active sessions.

General vigilance: The usual caution with suspicious sites and links (anti-phishing vigilance) helps avoid the pages that host clickjacking.

Frequently Asked Questions

What is clickjacking in simple terms?

Clickjacking is a web attack that tricks you into clicking something different from what you think you are clicking, by hiding or disguising the real target of your click. The name combines "click" and "hijacking" — your click is hijacked to perform an unintended action. Using transparent layers or invisible frames, an attacker makes you believe you are clicking a harmless element (like a "play" button) while your click actually activates a hidden element the attacker controls, causing actions you did not intend.

What can clickjacking do to me?

Clickjacking can trick you into performing unintended actions on sites where you are logged in — clicking buttons that change settings, make purchases, post content, or grant permissions, all without realizing it. It includes "likejacking" (tricking you into liking, following, or sharing) and tricking you into approving authorizations or permissions. Essentially, it causes you to perform actions you did not intend on sites you are using, by deceiving you about what your clicks actually do.

How is clickjacking prevented?

Primarily at the website level. Websites can use security headers (like X-Frame-Options or Content-Security-Policy frame-ancestors) that prevent their pages from being loaded in frames on other sites, defeating the common framing technique — this is the main defense, important for developers to implement on sensitive pages. Users can reduce risk by keeping their browser updated (modern browsers respect these protections), being cautious with suspicious sites and too-good-to-be-true offers that might host clickjacking, being wary of unexpected results from clicks, and logging out of sensitive accounts when not using them.

Conclusion

Clickjacking is a web attack that tricks you into clicking something different from what you think you are clicking, hijacking your click to perform an unintended action by hiding or disguising the real target. Using transparent layers or invisible frames, attackers make you believe you are clicking a harmless element while your click actually activates a hidden element they control — causing unintended actions like changing settings, making purchases, granting permissions, or liking and sharing on sites where you are logged in. Clickjacking is defended primarily at the website level through frame-protection headers (like X-Frame-Options and Content-Security-Policy) that prevent pages from being framed by other sites, which developers should implement on sensitive pages. Users can reduce risk by keeping browsers updated, being cautious with suspicious sites and too-good-to-be-true offers, being wary of unexpected click results, and logging out of sensitive accounts when not in use. By understanding how clickjacking deceives you about what you are clicking and supporting both site-side protections and user vigilance, you can reduce your exposure to this deceptive attack.

More from Temp90

Privacy resources made simple

FAQCommon temporary email questions. Trust CenterService status and transparency. Privacy PolicyHow Temp90 protects privacy. Terms of UseRules for using Temp90 safely.