File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Listener to filter IP addresses