[SOLVED] examples of wildcards for white/black lists?
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
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
[SOLVED] examples of wildcards for white/black lists?
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.
- fanthom
- Moderator Team
- Posts: 5666
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
examples of wildcards for white/black lists?
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 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.