• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 564
  • Last Modified:

Log client screen resolution

How can i log client screen resolution in a webserver like nginx or apache. In apache logs i see that i can log ip, referer, os, browser but i didn't found how to log screen resolution or color. It is posible?
0
rares_dumitrescu
Asked:
rares_dumitrescu
1 Solution
 
MrMintanetCommented:
What?
0
 
caterham_wwwCommented:
You can't log that in a way you're logging the referer etc. You'll need some embedded javascript code which reads the resolution and requests something, e.g. a 1x1 px image like /image.jpg?res=1600x1024 while the values were generated by javascript. Now, a request for /image.jpg?res=1600x1024 would appear in your logs.
0
 
rares_dumitrescuAuthor Commented:
Yeah, i touth so, i didn't wanted to do 2 requests. thank you.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now