Redirection by value of $ _SERVER [ 'REMOTE_ADDR'] |
[eluser]laegnur[/eluser]
Another question of mine. How to do, that for the value of $_SERVER['REMOTE_ADDR'], if the IP is local, show content, and if the IP is external, redirect to another site?
[eluser]bretticus[/eluser]
You could probably use a regular expression of even a str* function, however, there are ways to do this to check if the remote ip is in the same range as your internal network. See this page
[eluser]laegnur[/eluser]
Hi! Thanks for you answer. With this article, and using his function, I was able to do so. Code: if(isSet($_SERVER['REMOTE_ADDR'])) |
Welcome Guest, Not a member yet? Register Sign In |