web_remove_auto_filter
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.
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,
// Will be excluded as it matches the path prefix criteria
"Url=http://frontpage.knanas.com/Images/Upload/Commerce134.gif",
ENDITEM,// Will be excluded as it matches the path prefix criteria
"Url=http://frontpage.knanas.com/Images/Upload/120_eminem-t55.jpg", ENDITEM,
// Will be excluded as it matches the path prefix criteria
"Url=http://frontpage.knanas.com/Images/Upload/153_gavre_sigar.jpg", ENDITEM,
// Will be excluded as it matches the path prefix criteria
"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,
// Downloaded because filter has been removed.
"Url=http://frontpage.knanas.com/Images/Upload/Commerce134.gif", ENDITEM,
// Will be included
LAST );

