winzard Posted July 14, 2016 at 02:32 PM Report #597664 Posted July 14, 2016 at 02:32 PM Boas, Na minha empresa tenho um site que é igual tanto para acesso externo como interno, e eu queria conseguir definir que um determinado texto/botão, etc aparecesse somente quando o utilizador que está a aceder esteja na rede interna e que quem acedesse ao site de qualquer parte do mundo, não visse. Existe alguma forma de fazer isso? A minha arquitectura é Apache + PHP + Javascript/jquery Obrigado 😄
tiago.f Posted July 14, 2016 at 02:52 PM Report #597665 Posted July 14, 2016 at 02:52 PM Olá, Citação $_SERVER['REMOTE_ADDR'] contains the real IP address of the connecting party. That is the most reliable value you can find. http://stackoverflow.com/questions/3003145/how-to-get-the-client-ip-address-in-php
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now