Installing the Java Module on Weblogic

Compatibility

The Next-Gen WAF Java module is compatible with WebLogic version 12c (12.2.1) or higher.

Installation

To deploy the Next-Gen WAF Java module on WebLogic servers, you must first add it to your application as a servlet filter.

Then, deploy your application to your WebLogic server through the same process you would deploy any other Web Application.

Module Configuration

OptionDefaultDescription
rpcServerURIRequired, tcp://127.0.0.1:9999The Unix domain socket or TCP connection to communicate with the agent.
rpcTimeoutRequired, 300msThe timeout in milliseconds that the RPC client waits for a response back from the agent.
maxResponseTimeOptional, no defaultThe maximum time in seconds that the server response time will be evaluated against (i.e., to see if it exceeds this value) to determine if the module should send a post request to the agent.
maxResponseSizeOptional, no defaultThe maximum size in bytes that the server response size will be evaluated against (i.e. to see if it exceeds this value) to determine if the module should send a post request to the agent.
maxPostOptional, no defaultThe maximum POST body size in bytes that can be sent to the Next-Gen WAF agent. For any POST body size exceeding this limit, the module will not send the request to the agent for detection.
asyncStartFixOptional, falseThis can be set to true to workaround missing request body when handling requests asynchronously in servlets.
altResponseCodesOptional, no defaultSpace separated alternative agent response codes used to block the request in addition to 406. For example 403 429 503.
excludeCidrBlockOptional, no defaultA comma-delimited list of CIDR blocks or specific IP addresses to be excluded from filter processing.
excludeIpRangeOptional, no defaultA comma-delimited list of IP ranges or specific IP addresses to be excluded from filter processing.
excludePathOptional, no defaultA comma-delimited list of paths to be excluded from filter processing. If the URL starts with the specified value it will be excluded. Matching is case-insensitive.
excludeHostOptional, no defaultA comma-delimited list of host names to be excluded from filter processing. Matching is case-insensitive.

Sample module configuration:

Module configuration changes must be made in the <!-- Signal Sciences Filter --> section of your application's web.xml file:

1<!-- Signal Sciences Filter -->
2<filter>
3 <filter-name>sigSciFilter</filter-name>
4 <filter-class>com.signalsciences.servlet.filter.SigSciFilter</filter-class>
5 <async-supported>true</async-supported>
6<init-param>
7 <param-name>rpcTimeout</param-name>
8 <param-value>500</param-value>
9</init-param>
10 <init-param>
11 <param-name>asyncStartFix</param-name>
12 <param-value>true</param-value>
13</init-param>
14</filter>
15<filter-mapping>
16 <filter-name>sigSciFilter</filter-name>
17 <url-pattern>/*</url-pattern>
18</filter-mapping>
19<!-- end Signal Sciences Filter -->
Was this guide helpful?

Do not use this form to send sensitive information. If you need assistance, contact support. This form is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.