RETURN Action

<< Click to Display Table of Contents >>

Navigation:  Event and Object Analysis > Capture Results Filtering > Prefiltering HTTP Requests > Actions >

RETURN Action

Returns to the previous table (that called the current one) and continues execution there starting with the next rule.

Description

This action returns the current HTTP object processing to the previous table (that called the current one) and continues execution there starting with the next rule.

Format

<action name="return" />

The "name" attribute:

The name attribute specifies the name of the action: name="return".

Warning!
This action is not applicable to the main table.

Example:

GET requests are passed for processing to the get-process table. GET requests are processed in the get-process table. ACCEPT for requests to win.mail.ru. Return to the main table for further processing.

<?xml version="1.0" encoding="utf-8"?>
<filter name="HTTP filter" version="1.0">
 <comment>HTTP filter.</comment>
 <table name="main">
 
   <rule enabled="1">
     <comment>
       Processing of GET requests is passed to the "get-process" table.
     </comment>
     <action name="jump" value="get-process"/>
   </rule>
 
   <rule enabled="1">
     <action name="drop" />
   </rule>
 </table>
 
 <table name="get-process">
   <comment>
     GET requests are processed in the table.
   </comment>
 
   <rule enabled="1">
     <comment>
       ACCEPT for requests for win.mail.ru.
     </comment>
     <match>
       <c name="req-header"
          headername="Host"
          op="eq"
          value="win.mail.ru" />
     </match>
     <action name="accept" />
   </rule>
 
   <rule enabled="1">
     <comment>
       Return to "main" table for further processing.
     </comment>
     <action name="return" />
   </rule>
 </table>
 
</filter>