Friday, April 15, 2022

[FIXED] Why are iframes considered dangerous and a security risk?

Issue

Why are iframes considered dangerous and a security risk? Can someone describe an example of a case where it can be used maliciously?


Solution

As soon as you're displaying content from another domain, you're basically trusting that domain not to serve-up malware.

There's nothing wrong with iframes per se. If you control the content of the iframe, they're perfectly safe.



Answered By - Diodeus - James MacFarlane
Answer Checked By - Mildred Charles (PHPFixing Admin)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.