是否可以使用JavaScript或PHP检测访问者的浏览历史记录? [英] Is it possible to detect a visitor's browsing history using JavaScript or PHP?

查看:74
本文介绍了是否可以使用JavaScript或PHP检测访问者的浏览历史记录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想检查我的站点的访问者是否在访问我的站点之前已经访问了另一个特定站点.

I want to check if my site's visitors have visited another particular site before coming to mine.

我知道如何使用JS和PHP来检查(通过引荐来源网址)用户是否刚从该站点访问我的站点,但是我希望能够随时检测到他们是否访问过该站点之前(不只是在访问我的网站之前).可以检测到此信息吗?

I know how to use JS and PHP to check to see (via referrer info) if the user has just come from that site to mine, but I would like to be able to detect if they have visited this site at any time before (not just immediately before coming to my site). Can this information be detected?

推荐答案

不幸的是, 您可以将CSS规则应用于具有PHP脚本背景图像的a:visited.

You can apply a CSS rule to a:visited that has a background image for a PHP script.

这篇关于是否可以使用JavaScript或PHP检测访问者的浏览历史记录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆