我如何在django中获取客户端计算机的mac地址 [英] how can i fetch mac address of a client machine in django

查看:1087
本文介绍了我如何在django中获取客户端计算机的mac地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网站有两种类型的用户
1:玩家
2:管理员用户
我想将用于注册/登录玩家的客户端计算机的mac地址存储到网站中.如果一台计算机上同时运行两个游戏或两个玩家会话同时处于活动状态,我想阻止游戏.

My website is having two type of users
1 : Players
2 : Admin users
I want to store mac address of client machine from which player signup/signin into website.i want to block games if there is two games running from one machine or two player session active at same time.

推荐答案

我相信在Django中无法获取mac地址.您只能获得request变量中的HTTP标头. 但是您仍然可以通过任何其他方法(通过Java applet或ActiveX)获取MAC,并通过GET或POST请求将其传递给Django.

I belive there is no way to get mac address in Django. All you can get is HTTP headers in request variable. But still you can get MAC by any other method (via Java applet or ActiveX) and pass it Django by GET or POST request.

这篇关于我如何在django中获取客户端计算机的mac地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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