This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Portals and Portlets and the fly likes liferay: different content for different ip addresses Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "liferay: different content for different ip addresses" Watch "liferay: different content for different ip addresses" New topic
Author

liferay: different content for different ip addresses

Pablo Marmol
Greenhorn

Joined: Aug 23, 2010
Posts: 13
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: liferay: different content for different ip addresses