css - 基于感知性别的条件

标签 css cookies browser

是否可以使用存储在 cookie 中或网络浏览器中的数据来确定网站访问者是男性还是女性。

我想使用此类数据为我的网站设计不同的男性配色方案。

最佳答案

不可能知道用户的性别(他们可能会撒谎;我知道很多人在注册期间经常这样做以保持匿名);但您可以根据浏览器历史记录进行估算。

有人创建了一个小技巧,您可以在其中根据浏览器历史记录估计性别: http://www.mikeonads.com/2008/07/13/using-your-browser-url-history-estimate-gender/

引用:

... modified the SocialHistory JS so that it polled the browser to find out which of the Quantcast top 10k sites were visited. I then apply the ratio of male to female users for each site and with some basic math determine a guestimate of your gender. The math is really quite simple, I just take:

1 / (1 + r_1 * r_2 * … * r_n)

where p_i is the ratio of men-to-women for the specific site. For example, if you had been to two sites that had a 2-1 ratio of men to women, the probability of you being female would be:

1 / (1 + 2 * 2) = 1/5 = 20%

如果您可以访问用户的浏览器历史记录,您也许能够推导出一些方法来估计他们的性别。

Google Analytics 以及 Quantcast、其他软件和许多 cpanel 软件(如 awstats)也可以估计性别。

用户有时会将他们的性别存储在他们 PC 上的本地配置文件中,但是如果没有非法 spy 软件来嗅探用户,就没有干净合法的方式来收集这些信息,这些信息可能会或可能不会存储在他们浏览器的 cookie 中,具体取决于他们访问的网站在注册期间注册或登录的收集了他们的性别。

当然,非常非法的确定方式是使用非法恶意软件访问网络摄像头,然后使用面部识别软件,您可以设置一个自动化软件来准确确定每个拥有笔记本电脑或个人电脑的人的性别摄像头。但是,除非您是不担心被捕的疯狂黑客,否则如果我是您,我会避免尝试此操作。

关于css - 基于感知性别的条件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22571504/

相关文章:

google-chrome - 允许对我之前拒绝的网站使用地理定位

javascript - Firefox 和 Chrome 之间的布局差异

html - 如何使用 CSS 向我的表格添加文本阴影

html - CSS3 : How can I get something that works like "absolute" but isn't?

javascript - 使用 Ajax 请求在 Sencha touch 2.0 中获取 Cookie

javascript - 如何使用 Javascript 发出包含 cookie 的异步 HTML 请求?

html - 如果doctype是html as HTML5,那么IE6是哪种模式?

html - 文本未出现

html - 宽度=%,高度=像素,什么类型的布局使用百分比和像素?

c# - 从 Silverlight 应用程序将 cookie 设置为 HttpOnly