Pionads Helpfiles: Filtering Requests

Home

Filtering Requests

Filtering requests

PionAds allows you to filter or ignore requests by adding requestrules.Requestrules are used to validate requests, based on the request headers (for example the useragent or language). Requestrules are specifically useful for ignoring statistics from bots and spiders, which will clutter statistics.

Request rules

In the advanced submenu, click 'requestrule' to configure existing rules, or create new ones. 

Caution: Adding an invalid requestrule (e.g. empty condition with Block action) may block you from accessing PionAds, if you find that you're locked out of the PionAds administration section after adding a requestrule, please use our contact section. 

Creating a new request rule

Click the '+ New requestrule' button in the requestrule administration screen and fill the following fields;

Field name Description
Name An informative name for the rule
Property The property of the request against which the rule is validated (for example UserAgent)
RuleType The constraint for which the property is validated
Condition The value against which the constraint is validated (e.g. bingbot)
ActionType The action ran for that request

RuleType

RuleType Description
Equals The value of the property should match the condition value
Not equals The value of the property should not match the condition value
Contains The value of the property should contain the condition value
Not contains The value of the property should not contain the condition value
Ends with The value of the property should start with the condition value
Starts with The value of the property should end with the condition value

ActionType

ActionType Description
Undetermined Passes the request without an actiontype determined
Pass Passes the request 
Block 400 Blocks the request and return http status code 400 (Invalid request)
Block 401 Blocks the request and return http status code 401 (Not authorized)
Block 404 Blocks the request and return http status code 404 (Not Found)
Ignore Passes the request, but ignores the request when updating statistics

Examples

Ignoring bingbot requests:

Property: Useragent
Ruletype: Contains
Condition: bingbot
ActionType: IGNORE

Block chinese requests:

Property: Language
Ruletype: Equals
Condition: zh
ActionType: BLOCK 400

[Please implement an object class template for: core.managers.ResourceManager/resourcemanager_js]