title: Check for a Link in Javascript/PHP Widget
body: <p>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</p>
  
  <p><a href="http://php-drops.blogspot.ca/2011/04/creating-widget-with-javascript-and-php.html" rel="nofollow">http://php-drops.blogspot.ca/2011/04/creating-widget-with-javascript-and-php.html</a></p>
  
  <p>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 <code>&lt;div&gt;</code> that will have something like</p>
  
  <pre><code>&lt;div id="my_copyright"&gt;Data provided by &lt;a href="http://www.example.com"&gt;Example.com&lt;/a&gt;&lt;/div&gt;
  </code></pre>
  
  <p>How would I go about protecting the data so that if the user tries to remove the link, alter the <code>&lt;a&gt;</code> tag to a <code>rel="nofollow"</code> or any other "work arounds", the data will not load and post an alert() and not load the data? </p>
  
  <p>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. </p>