开发者

Can the Google +1 Javascript API be used in a way that requests are sent via visitor's PC/IP, and not my web server?

开发者 https://www.devze.com 2023-03-24 09:33 出处:网络
Google +1 API reference:http://code.google.com/apis/+1button/ What I want to do is use the Google+1 API on my website that contains pages with links to other w开发者_如何学运维ebsites.When a visitor

Google +1 API reference: http://code.google.com/apis/+1button/

What I want to do is use the Google+1 API on my website that contains pages with links to other w开发者_如何学运维ebsites. When a visitor clicks the +1 button next to a link they like, I want the request to come from the user's computer, not from my web server.

My concern is that Google may think the +1s are spammy or whatnot if they all come from my web server, so I want them to appear natural, coming from IPs all over the world.

Hoping that someone who REALLY understands HTTP requests and Javascript can help answer this.

Thanks in advance!

EDIT: Turns out the JSON request that's sent when the +1 button is clicked contains a field called "container" that contains the source page URL, not the URL that's actually being +1'd. Also, when the .js files are GET to a visitor's machine, the "Referrer" is set to be the source page URL (of course).

I'm looking for a way to prevent the Referrer and the "container" field from containing the source page URL.


A google +1 link in a web page already comes from the user's computer. The user is displaying your web page on their computer and when a Google +1 link is clicked, the user's own browser makes the Google +1 request to Google's computers. Your web site provides the code in the web page, but the user's own computer makes the Google +1 request. I don't think you need to worry about this issue as your web server is not making the actual Google +1 request.

0

精彩评论

暂无评论...
验证码 换一张
取 消