• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

liferay: different content for different ip addresses

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Everyone,

I'm using Liferay in a project and customer has requested me a new functionality: They want to show different content depending on the IP address of the client. My customer has different ip ranges for his clients, let say range 1, range 2, range 3. When a client points his/her browser to the main page of my customer's site, a page for range 1, 2 or 3 should be shown if the client has an ip address in the range 1, 2 or 3.
My customer has apache as front-end, and weblogic with liferay as a back-end. I suppose that if liferay tries to obtain the client ip address, probably the obtained ip would be an apache ip, so maybe this approach won't work. Another approach could be to use apache redirecting rules (that is, identifying the source network in apache and appending certain parameter to the URL for weblogic).
Could you help me? Please, i need only a few comments about this, a link or something. I don't know if this is an usual requirement, but i'm pretty sure that someone has faced this challenge before me.

Thank you very much in advance.
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic