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

'User made' tutorials related to Porteus Kiosk edition.
Official kiosk documentation can be find here: http://porteus-kiosk.org/documentation.html
Forum rules
Porteus Kiosk section of the forum is unmaintained now. Its kept in a 'read only' mode for archival purposes.
Please use the kiosk contact page for directing your queries: https://porteus-kiosk.org/contact.html
TomMoore
White ninja
White ninja
Posts: 6
Joined: 05 Nov 2018, 15:15
Distribution: kiosk 4.7.0

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

Post#1 by TomMoore » 07 Nov 2018, 13:21

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"?
Last edited by TomMoore on 07 Nov 2018, 15:05, edited 1 time in total.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

examples of wildcards for white/black lists?

Post#2 by fanthom » 07 Nov 2018, 14:50

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
Please add [Solved] to your thread title if the solution was found.

TomMoore
White ninja
White ninja
Posts: 6
Joined: 05 Nov 2018, 15:15
Distribution: kiosk 4.7.0

examples of wildcards for white/black lists?

Post#3 by TomMoore » 07 Nov 2018, 15:05

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.

Locked