Share this page

# web_remove_auto_filter

Filter Functions

Removes a filter on download content.

    int web_remove_auto_filter( char *Id, LAST );

Argument | Description
--- | ---
Id | The identification of the filter instance set by web_add_auto_filter. Must be in the format `"Id=`value`":`
LAST | A marker indicating the end of the List of Attributes

## Return Values

This function returns LR_PASS (0) on success, and LR_FAIL (1) on failure.

## Parameterization

All attributes from the list of attributes can be parameterized using standard parameterization.

## General Information

The web_remove_auto_filter function removes the filter that was set in a previous call to web_add_auto_filter.

## Example

The following example uses web_add_auto_filter to exclude URLs with a path prefix of /Images/Upload. The call applies to all subsequent action functions, in this case, the two calls to web_url(). The invocation of web_remove_auto_filter removes the filter from subsequent calls to action functions.

Copy code

    web_add_auto_filter("Action=Exclude",
         "PathPrefix=/Images/Upload",
         "Id=fid",
         LAST );
    web_url("www.knanas.com", "URL=http://www.knanas.com/", "Resource=0",
         "RecContentType=text/html", "Referer=", "Snapshot=t1.inf",
         "Mode=HTML",
         EXTRARES,
         "Url=/images/netaction_icon.gif", ENDITEM,
         "Url=http://frontpage.knanas.com/Images/Upload/Commerce323.jpg",      ENDITEM,

         <i>// Will be excluded as it matches the path prefix criteria</i>
         "Url=http://frontpage.knanas.com/Images/Upload/Commerce134.gif",
         ENDITEM,
    <i>     // Will be excluded as it matches the path prefix criteria</i>
         "Url=http://frontpage.knanas.com/Images/Upload/120_eminem-t55.jpg",
         ENDITEM,
    <i>     // Will be excluded as it matches the path prefix criteria</i>
         "Url=http://frontpage.knanas.com/Images/Upload/153_gavre_sigar.jpg",
         ENDITEM,
    <i>     // Will be excluded as it matches the path prefix criteria</i>
       "Url=http://realmedia.knanas.com/RealMedia/ads/Creatives/default/empty.gif",
         ENDITEM,
         LAST );
    web_remove_auto_filter("Id=fid", LAST );
    web_url("www.knanas.com", "URL=http://www.knanas.com/", "Resource=0",
         "RecContentType=text/html", "Referer=", "Snapshot=t1.inf", "Mode=HTML",
         EXTRARES,
         "Url=/images/netaction_icon.gif",
         ENDITEM,
         "Url=http://frontpage.knanas.com/Images/Upload/Commerce323.jpg",
         ENDITEM,
         <i>// Downloaded because filter has been removed.</i>
         "Url=http://frontpage.knanas.com/Images/Upload/Commerce134.gif",
         ENDITEM,
         // Will be included
         LAST );

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: