3 ms·
I'm not how this is 'reverse engineering' and there's no indication that faking the JSON actually causing the +1 to be activated. Looking in the Safari debugge
by jgrahamc 15y ago
I'm not how this is 'reverse engineering' and there's no indication that faking the JSON actually causing the +1 to be activated. Looking in the Safari debugger it looks like there's a bunch of other stuff going on when the +1 button is pressed. There are a load of extra headers in the HTTP request:
Origin: https://clients6.google.com
Origintoken: APfa0boTRJ3fof-lEyAVjVQzO_sSMz5frFmbeeMTJ2nASXJBVUX7PDb2dnWA3pGrlmuefwvwXuC9l2
Clientdetails: appVersion=5.0%20(Macintosh%3B%20U%3B%20Intel%20Mac%20OS%20X%2010_5_8%3B%20en-
us)%20AppleWebKit%2F533.21.1%20(KHTML%2C%20like%20Gecko)%20Version%2F5.0.5%20Safari%2F533.21
.1&platform=MacIntel&userAgent=Mozilla%2F5.0%20(Macintosh%3B%20U%3B%20Intel%20Mac%20OS%20X%2
010_5_8%3B%20en-us)%20AppleWebKit%2F533.21.1%20(KHTML%2C%20like%20Gecko)%20Version%2F5.0.5%20Safari%2F533.21
.1
X-Javascript-User-Agent: google-api-javascript-client/1.0.0-alpha
X-Origin: https://plusone.google.com
X-Referer: https://plusone.google.com/u/0/_/+1/button?hl=en-US&jsh=h%3Brt%2F225303364-
e72328d15
And in the response he gets there seem to be a bunch of missing fields (on my machine there's the title and information about my logged in Google Account) and there's also the count of +1s on that page. He seems to be getting a 0 return. Wouldn't be much surprise if this is Google's way of showing that it ignored the request.
- AltIvan 15y agoAnd not to mention they could change the data it recieves (and how it recieves it) anytime. It would be way easier and more effective just add a click event and with some Ajax save the stadistics on your own database.
- yaix 15y agoThe article did not talk about a click but only about the display. They are only trying to access the displayed click count number directly via PHP.