Google +1 Javascript API 能否以通过访问者的 PC/IP 而不是我的网络服务器发送请求的方式使用?
Google +1 API 参考:http://code.google.com/apis/+1button/
我想要做的是在我的网站上使用 Google+1 API,该网站包含带有其他网站链接的页面。当访问者单击他们喜欢的链接旁边的 +1 按钮时,我希望请求来自用户的计算机,而不是来自我的网络服务器。
我担心的是,如果 +1 全部来自我的网络服务器,Google 可能会认为这些 +1 是垃圾邮件或其他什么,所以我希望它们看起来很自然,来自世界各地的 IP。
希望真正了解 HTTP 请求和 Javascript 的人可以帮助回答这个问题。
提前致谢!
编辑: 结果是,单击 +1 按钮时发送的 JSON 请求包含一个名为“容器”的字段,其中包含源页面 URL,而不是实际 +1 的 URL。此外,当 .js 文件被 GET 到访问者的计算机时,“Referrer”被设置为源页面 URL(当然)。
我正在寻找一种方法来防止引用者和“容器”字段包含源页面 URL。
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 websites. 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
网页中的 google +1 链接已来自用户的计算机。用户在其计算机上显示您的网页,当单击 Google +1 链接时,用户自己的浏览器会向 Google 计算机发出 Google +1 请求。您的网站在网页中提供了代码,但用户自己的计算机发出了 Google+1 请求。我认为您不需要担心这个问题,因为您的网络服务器没有发出实际的 Google +1 请求。
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.