doufan9377 2013-02-09 11:00
浏览 24
已采纳

如何识别网页的真实访问

what we want to do :
our system is redirecting all connections of clients to our web server (as like : www.example.com/index) .
in client PC if something (app , win update , messengers and ... ) wants to connect to the internet that will be redirect to that address .
we want to track web visits which a client visit that with opening web browser and submitting our address not those are coming from applications .

issues :
we are using Zend Framework , php and javascript
some applications maybe run java scripts , so that'll not use full (some exception).
tracking IP address can not possible if we want to submit visit for each page separately.
some applications get sessions like a visitor . (and also cookies)

what we do :
using java script code for listening mouse move event and when it happen we send our log info with ajax . so this will be show that the real visitor is visiting a page .

Question :
is there any better way for tracking this visits ?

  • 写回答

1条回答 默认 最新

  • duandi8852752 2013-02-09 11:08
    关注

    Maybe you can try 'pinging' the server by loading a hidden image via JavaScript when the webpage loads. Something like this:

    window.addEventListener("load",function() {
        var img = document.createElement("img");
        img.src = "/pingme.php";
        img.style.display = "none";
    
        document.body.appendChild(img);
    },false);
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 stata安慰剂检验作图但是真实值不出现在图上
  • ¥15 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题