Example: web_remove_auto_filter
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 );