Diggbar Blocker
Inspired by John Gruber’s "How to Block the DiggBar" entry, for anyone that would like it, here is an ExpressionEngine extension that will allow you to show a standard error message with the content of your choice if your site is visited via a DiggBar frame. In the message settings, use @@@ to substitute for the URL, so for instance you could display the message:
[html4strict]Sorry, Digg is trying to show you my site in a frame. Open this link in a new tab or window to see the content you were trying to reach:
@@@[/html4strict]
Update: For those unfamiliar with Extension installation, here’s what to do after downloading:
- Place ext.diggbar_blocker.php in /system/extensions/
- Place lang.diggbar_blocker.php in /system/language/english/
- Visit Admin > Utilities > Extension Manager and enable the extension
- Click "Settings" to customize the message.
- Want to test it out? Type http://digg.com/http://example.com in the address bar, replacing example.com with a URL on your site.