There is no way to get the mac address via php. PHP only can get the things what will send via the HTTP-header. Only if you are in the same network (no router between you and the webserver) it is possible.
Detect local machine to void updating statistics
-
14-04-2022 - |
Question
I'm developing statistics for a website i'm developing, using PHP and MySQL.
Is there anyway to detect in PHP:
//pseudo code
If (the users machine == a certain MAC address){
don't update the page count.
}
I want to make my laptop void from updating page views on my site via MySQL.
E.g. I visit the homepage too many times. And it will make the real page visits unrealistic.
Any ideas?
Thanks in advance
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow