Is <iframe> a good solution for including content from another website?
Is <iframe>
a good solution for including some portion of som开发者_如何学Ce site into another?
I've heard before that it is a security compromise, ain't it?
Thanks.
Yes there are security concerns for your users, plus that <iframe>
can just bust itself and take over the entire page, redirecting from yours. Any malware they're hosting, XSS attacks, etc. your users would be exposed to, just as if they visited the other site directly.
More than this, unless you own the content from the other site, should you really be taking their content in pieces and displaying it in your site to begin with?
精彩评论