This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes Listener to filter IP addresses Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Listener to filter IP addresses" Watch "Listener to filter IP addresses" New topic
Author

Listener to filter IP addresses

Luke Shannon
Ranch Hand

Joined: Sep 30, 2004
Posts: 239
Hi;

I need to direct traffic to application. Some IPs need to be redirected.

Is a Listener the best way to do this?

Thanks,

Luke
[ November 30, 2004: Message edited by: Luke Shannon ]

Luke
SCJP
Luke Shannon
Ranch Hand

Joined: Sep 30, 2004
Posts: 239
Should I be using a Filter perhaps? The only thing is I need it to work for the whole application.

Luke
Luke Shannon
Ranch Hand

Joined: Sep 30, 2004
Posts: 239
Forget it. I am just going to handle this in Apache with the httpd.conf, create a shell script for Linux and a Batch for Windows to modify the file and restart the server.

This is easier and I don't have to mess with so much code.
 
 
subject: Listener to filter IP addresses
 
Similar Threads
JSTL printing issue
clearance jobs?
25 Lines From Star Wars That Can Be Improved if you substitute the word pants
JInternalFrame and JDesktopPane listeners??
Welcome Luke Hohmann