wordpress frame breaker

Posted in: Newspaper
Post count: 37

Hi,
I have to badly breakout from frame scrapping. I mean I want to block my site from loading inside frames on some other websites which affect my SEO. Any code available?

Few plugins already tried. No use. Some works on Chrome, but all fails on Firefox. I don’t know theme causes any issue or not.

Regards,
Prashanth

Post count: 20688

Hi,

I found these topics related to your problem. You could try the suggestions mentioned there and check the results
https://www.kevinmuldoon.com/break-out-frames-javascript/
http://www.wprecipes.com/how-to-force-your-wordpress-blog-to-break-out-of-frames/
Or you could search for more plugins, maybe you can find one that works properly for all browsers.

Thanks

Post count: 9544

We use a simple javascript on our site added to Footer; however I’ve noticed that Pinterest seemed to find a way around that now.

Seems to foil the dread Twitter spam people though.

There is a common bit of javascript which has been used for years, and probably the same one Simion linked to.

Post count: 9544

Note – to disable the oembed function, however, you’d need to disable the embed code added to header by WordPress.

(the o-embed allows people with WordPress sites to put your page URL into their post and it drops in a Twitter like excerpt of your story …) — we disable this too.

Post count: 37

Hi Simion,
Thanks for the help!
The plugin you mentioned in your first link I already tried, I mean before I commenting here. It may be working. But in my case I had some other issues. I sorted out the issue by the following method. May be useful for others
I did three things.
1) I did remove my Free CDN, CloudFlare, set up – I could not find any reduction in speed!
2) Uninstalled W3 Total Cache – Drastically decreased my site loading speed.
3) Installed WP Super Cache as suggested by TagDiv. Speed improved but not up to the previous score.
4) Installed Frame Buster plugin, which was part of socialwarfare plugin, now free.
5) That solved my issue 99%
Thanks all for the suggestion.
Prashanth

Post count: 9544

For those on Apache, all browsers also support the x-frame header option.

You can add this to your htaccess file

<IfModule mod_headers.c>
Header always append X-Frame-Options SAMEORIGIN
</IfModule>

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.