tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 51953] Proposal: netmask filtering valve and filter
Date Fri, 14 Oct 2011 23:16:06 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=51953

--- Comment #19 from Francis Galiegue <fgaliegue@gmail.com> 2011-10-14 23:16:06 UTC
---
Well, my filter is not the only one affected.

I also added this to web.xml:

----
  <filter>
    <filter-name>host</filter-name>
    <filter-class>org.apache.catalina.filters.RemoteHostFilter</filter-class>
    <init-param>
      <param-name>deny</param-name>
      <param-value>$127.0.0.1</param-value>
    </init-param>
  </filter>

  <filter-mapping>
    <filter-name>host</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>
----

Of course, the regex is invalid. BUT THE CONTEXT RELOADS!!

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message