![]() |
HJB 12/4/2020 |
https://www.tutorialfor.com/blog-180706.htm |
![]() |
Admin 12/4/2020 |
No es possible. |
C
|
cjarerov author 12/4/2020 |
No es possible. Any PHP code will run on the web server and you will be only able to get MAC address of the server itself. Client devices like desktops or mobile devices do not send MAC address info to the server.
|
![]() |
HJB 12/5/2020 |
Totalmente de acuerdo con @ admin que el código PHP que se ejecuta en un servidor no puede funcionar, sin embargo, de varias publicaciones web relevantes, es mi poco entendimiento que los llamados BACKTICKS (que en términos simples es una especie de ventana de sistema operativo como código en lugar de PHP) puede hacer. En otras palabras, Backticks (") es un operador de ejecución. PHP intentará ejecutar el contenido de los backticks como un comando shell; la salida será devuelta (es decir, no será simplemente arrojada a la salida; se puede asignar a una variable). El uso del operador backtick es idéntico a shell_exec (). En "Obtener dirección MAC cliente" código ex URL https://www.tutorialfor.com/blog-180706.htm'>https://www.tutorialfor.com/blog-180706.htm se puede ver que exactamente tal SHELL COMANDO exec se utiliza. Sólo mis pequeños 2 centavos en el tema. |
![]() |
Admin 12/7/2020 |
If you need to restrict your application to only run on a specific mobile device - you need a native mobile application. Web application runs on the web server and won't help you with this task. |
M
|
MikeT 12/7/2020 |
I'm not sure because the use case is not specified enough, but I'll drop this anyway: if it's only for a known number of devices you have control over, in the sense that you can lock down the browser configuration, you could modify the user agent string in the devices browser and read this from the request server side. It's not 100% secure, but I once did this in a situation with a few clients that the admin could configure in this way. |