Page 1 of 1

[SOLVED] examples of wildcards for white/black lists?

Posted: 07 Nov 2018, 13:21
by TomMoore
Could someone please give me some examples of wildcards that can be used in white and black lists? The documentation says not to use "*" but doesn't say what can be used. For example, how could I block any URL that contains "facebook"?

examples of wildcards for white/black lists?

Posted: 07 Nov 2018, 14:50
by fanthom
Hello Tom,

Please post in kiosk section of the forum only.

1) Firefox uses regex so its enough that you add relevant strings to white/black list. You cant add wildcards as they are added by default.

Sample:
blacklist=facebook porteus 192.168.1

This parameter translates to "*facebook*" "*porteus*" and "*192.168.1*".

2) Chrome is not that flexible and you must use valid domains/IPs. Its explained here:
https://www.chromium.org/administrators ... LWhitelist
https://www.chromium.org/administrators ... LBlacklist

As you can see you can use wildcards for Chrome (our docs says you cant just to keep things simple and synced with firefox - sometimes users switch the browsers by editing single 'browser=' parameter)

Sample:
whitelist=domain.com 192.168.1.5 https://kernel.org domain.com/path/*

Its bit complicated for Chrome so if you use this browser then you may need to test it yourself.
Or just use Firefox which you can lock down better than Chrome.

Thanks

examples of wildcards for white/black lists?

Posted: 07 Nov 2018, 15:05
by TomMoore
fanthom wrote:
07 Nov 2018, 14:50
regex so its enough that you add relevant strings to white/black list. You cant add wildcards as they are added by default.
Thank you so much for the reply. That is exactly the information that I needed. Sorry if I posted this question in the wrong place.