plagiarism checker in Typoscript
It is hard to prevent that your content is being leeched by others, especially if it is good content you've been working for hard. Bad enough. But at least you can check WHO leeches your content thanks to the extremely usful site called Copyscape.com.
With just a few lines of Typoscript you can check who is copying your content by implementing a form that sends your siteurl to Copyscape. Apparently this is a form not intended to be visible to the public. So you could connect it to a TypoScript condition to make it visible to backend users only in frrontend editing mode (this is not covered by this example).
- # do not forget to substitute {$your.siteurl} with YOUR site's URL,
- # for example http://www.snippit.net (no trailing slash)
- copyscape=TEXT
- copyscape.value=check
- copyscape.typolink.parameter = {TSFE:id}
- copyscape.typolink.parameter.insertData=1
- copyscape.typolink.returnLast=url
- copyscape.wrap=<FORM NAME="query" METHOD="POST" ACTION="http://www.copyscape.com"><INPUT NAME="q" TYPE="hidden" VALUE="{$your.siteurl}/|" SIZE="48"><INPUT TYPE="submit" VALUE="content leech check"></FORM>
- # pass it to page object
- page = PAGE
- page.typeNum=0
- page.10 < copyscape
