Google +1 Button has a flaw

I was playing around with Google’s new +1 Button and while reading the documents about the API one thing interested me is the <link> attribute. According to the documentation you can tell the API to use the current URI or the main URL of the website. Then I was thinking, what if you mask the URL, let’s say use the google.com URL on your site? You guessed right, your site will show that it has been +1 around 4,000 times as of today.

Google +1 Button
Google +1 Button

Here’s the code for this,

<!– Place this tag in your head or just before your close body tag –><link rel=”canonical” href=”http://www.google.com”><script type=”text/javascript” src=”http://apis.google.com/js/plusone.js”></script><!– Place this tag where you want the +1 button to render –><g:plusone></g:plusone>

Here’s a live view of the code:

Note: When clicking it, you are still giving a +1 to Google.com, you’re only spoofing your site to look like it’s popular.

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *