Hi Farai,

On 14/09/2020 14.17, Farai M wrote:
You might need to capture mac address on login then associate it with the login session


You can't do that. Or, you could probably look up the IP address in the HTTP header in the local ARP cache on the server where your Django application is running. In case that both the client and the server are on the same network, you might be able to find it, but that's a very limited use case and definitely not reliable even if it could be assumed that the devices would always be on the same network.

If you control the client to some extent, you might be able to send the local MAC address in eg. the HTTP header, but then you might as well use a more reliable unique identifier, but that all depends on what you are able to retrieve on the client side. Of course, none of that information should actually be trusted though.

Kind regards,

Kasper Laudrup

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4646dd3e-623e-1a03-e564-05baec20818b%40stacktrace.dk.

Reply via email to