Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Servlet Interest »

[NEWBIE] How to write a serlvet filter to ...

Daniel Joshua

2003-08-12

Replies:

Hi all,
 
How do I write a serlvet filter to block a certain pages depending on the port or the connection?
 
 
Scenario:
I have set tomcat to use two ports for http connections (eg. 8080 and 8008).
With the use of a firewall, one port is accessible via web and the other only by LAN.
 
Thus I would like to "block" access to certain pages and return 404s... :P
 
 
 
Regards,
Daniel

___________________________________________________________________________ To unsubscribe, send email to listserv@java.sun.com and include in the body of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

©2008 junlu.com - Jax Systems, LLC, U.S.A.