I created my own Javascript/PHP widget that takes info from my site, and allows other users to put it on their own. I'd like to know how I can put in some "Link Protection". The reason I made the widget is so that I can gain some valuable links from those who decide to use my widget on their site. The site I got the tutorial from is
http://php-drops.blogspot.ca/2011/04/creating-widget-with-javascript-and-php.html
When I look at the source code, the link to the site is not visible since it is being brought up in an iframe. What I wanted to do is to put a separate <div>
that will have something like
<div id="my_copyright">Data provided by <a href="http://www.example.com">Example.com</a></div>
How would I go about protecting the data so that if the user tries to remove the link, alter the <a>
tag to a rel="nofollow"
or any other "work arounds", the data will not load and post an alert() and not load the data?
Any help would be great! The script currently uses 1 JS file 1 PHP file that extracts data from MySQL and prints out the data needed.