How can you create a link on your web page that looks at your IP address and determines if you in our outside of the network and then determines which page to redirect you to depending on your IP?
You could do the redirect based on a Javascript, but this is not a secure way of redirecting because the client gets to determine which of the two URLs to link with. But if you are simply doing it for administrative purposes, not security, it will work fine.
Alternatively you must use something like PHP or ASP on the server side to dynamically determine which URL to display. Of course this can also be downloaded by a determined individual, so they would have access to both URLs as well.
The only "safe" ways to accomplish the redirect that I know of is to set permissions on directory structures through the webserver, or to write a binary with obfuscated strings that is called by the web server when a specific link is clicked and have it return a URL string based on incoming IP.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.