• Post Reply Bookmark Topic Watch Topic
  • New Topic

Conditional URL redirection based on source IP address (or domain)  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

First, sorry for my poor english...

I have a web-app (JSP) deployed on "Tomcat 7.0.67"+JRE 8_66.
This app. can be used by client PC from LAN (domain MYDOMAIN.LOCAL) or from an external web access (public URL).

How can I analyze the source of the connection (Internal/External) and redirect it respectively to URL "I" or URL "E" ?

Can we detect the name of the internal domain of a client connected from LAN or do we have to identify the origin of the connection (internal/external) by analyzing the first digits of IP address of the client ?

I have very few knowledge in web programming (JSP or other), please could you give me a working example I could adapt for my case and test ?

Thanks in advance.


  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!