[jboss-user] [Beginner's Corner] New message: "Re: Configure webapp to accept requests only from a specific port"

y lp do-not-reply at jboss.com
Mon Mar 8 21:14:30 EST 2010


User development,

A new message was posted in the thread "Configure webapp to accept requests only from a specific port":

http://community.jboss.org/message/530666#530666

Author  : y lp
Profile : http://community.jboss.org/people/ylp_1

Message:
--------------------------------------------------------------
some about Remote Address valve .
maybe you can use java regex to filter differert ports
 
 
|  |
| > |  |
> | > The *Remote Address Filter* allows you to compare the IP address of the client that submitted this request against one or more +regular expressions+, and either allow the request to continue or refuse to process the request from this client. A Remote Address Filter can be associated with any Catalina container (/engine.html, /host.html, or /context.html), and must accept any request presented to this container for processing before it will be passed on.
> > The syntax for +regular expressions+ is different than that for 'standard' wildcard matching. Tomcat uses the java.util.regex package. Please consult the Java documentation for details of the expressions supported. |
> |  |
> | > The *Remote Address Filter* supports the following configuration attributes:
> > || Attribute || Description ||
> > | *className* | Java class name of the implementation to use. This MUST be set to *org.apache.catalina.valves.RemoteAddrValve*. |
> > | allow | A comma-separated list of +regular expression+ patterns that the remote client's IP address is compared to. If this attribute is specified, the remote address MUST match for this request to be accepted. If this attribute is not specified, all requests will be accepted UNLESS the remote address matches a deny pattern. |
> > | deny | A comma-separated list of +regular expression+ patterns that the remote client's IP address is compared to. If this attribute is specified, the remote address MUST NOT match for this request to be accepted. If this attribute is not specified, request acceptance is governed solely by the accept attribute. |
> >  |
>  |

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/530666#530666




More information about the jboss-user mailing list