ajmalafif
5/29/2013 - 6:41 AM

[web] - plagiarism prevention

[web] - plagiarism prevention

Detect if you're site is iframed

This one-liner will detect if your page is being run from another website inside an iframe, and redirect to your page.

<script>0<parent.frames.length&&top.location.replace(document.location.toString());</script>

Human readable:

if( parent.frames.length > 0 )
{
  top.location.replace( document.location.toString() );
}

Detect hotlinking with killshot

$ killshot -r http://shoretelsky.dev -w www.shoretelsky.com