Why do so many websites keep requesting an empty gif? Is it to get data while avoiding cross-domain?
黄舟
黄舟 2017-06-28 09:28:25
0
4
727

Like the title? Thanks!

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(4)
为情所困

Mostly for site statistics

曾经蜡笔没有小新

First of all, it is natural to avoid cross-domain. Usually third-party monitoring platforms are not in the same domain as the website; secondly, using blank gif or 1x1 px img is a common method for Internet advertising or website monitoring. It is simple and safe. This kind of request is used in many places, such as browsing, clicks, hotspots, heartbeats, ID issuance, etc.

I have done this before, haha.

Ty80

Check if there are any parameters on the url? It should be used for burying questions, such as recording what buttons you clicked, what operations you performed, etc.

滿天的星座

I don’t know if you are looking at some statistical scripts, such as google-analytics.js

These are scripts embedded in third parties to collect some front-end statistical information and save them on the third-party server. Then you can log in to their management backend to view the statistics.

So this must be cross-domain, so we are indeed avoiding cross-domain

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!