How does Google Analytics prevent traffic spoofing

后端 未结 2 1095
囚心锁ツ
囚心锁ツ 2020-12-25 14:07

We want to embed an ajax style service into a number of our websites each with a unique api key. The problem that I can see is that because the api key is stored in the java

2条回答
  •  抹茶落季
    2020-12-25 14:43

    At a guess, I'd say the key is one half of a public-private key pair that (somehow) includes the URL as a hash. This way, the key will only work, and the hits only registered, if the request is for the URL for which the key was generated. You can't spoof the request, because if you do it goes to the wrong URL and nothing happens.

提交回复
热议问题