Firefox adult/drug/gambling/alcohol site filter: md5 encryption/deciphering & base64 encoding/decoding
GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
They my well contain a salt? I'm certainly wishing I had an alternative to Firefox if they are really so patheic as to censor with a "naughty list" -- I didn't realise Firefox was programmeed by babies.
Have you considered that some Firefox users are parents? Parents take care of these little creatures called "children", who are incompetent, at least in law, to make decisions for themselves, thus parents have the option of a content filter. If you do not use it, it does not affect you.
Last edited by Woolie Wool; 02-19-2019 at 03:08 PM.
Have you considered that some Firefox users are parents? Parents take care of these little creatures called "children", who are incompetent, at least in law, to make decisions for themselves, thus parents have the option of a content filter. If you do not use it, it does not affect you.
Actually one of the required competencies for a parent is the ability to supervise their children and not rely on some third party. The filter should be unnecessary.
You want to supervise your child 24/7 like she's a kid in the goddamn Panopticon or something? Why does it matter to you? It's not your kid. Nobody's making you turn the filter on.
You want to supervise your child 24/7 like she's a kid in the goddamn Panopticon or something? Why does it matter to you? It's not your kid. Nobody's making you turn the filter on.
Actually, it was my kids.
If you're not willing or able to supervise 24/7 you shouldn't consider being a parent.
Edit: "supervise" means watching for problems, not necessarily "forbidding".
Last edited by fido_dogstoyevsky; 02-19-2019 at 05:03 PM.
Humm very clever, didn't think about that
It's a possibility indeed.
Quote:
Originally Posted by scasey
That said, l0f4r0, I don't think I understand your question, either.
Is bet365.com being filtered from the new tab?
Do you want it to be and it's not?
Please clarify.
No no, actually my thread is not about the filter relevance (so people try to keep on topic please) nor content.
I'm just trying to verify technically by myself how plain text base domain entries have been encrypted&encoded so they appear that way in the filter source code.
bet365.com was just an example to go through the whole process (I hoped to fall on my feet but apparently not...)
Have you considered that some Firefox users are parents? Parents take care of these little creatures called "children", who are incompetent, at least in law, to make decisions for themselves, thus parents have the option of a content filter. If you do not use it, it does not affect you.
It's not really a content filter, it just blocks sites from showing on the "new tab screen". You (or your children) can still visit as much as you want...
Quote:
Originally Posted by l0f4r0
It seems base domains are first md5 encrypted and then base64 encoded but I cannot verify that with any provided example...
Now we have something that looks like it should be in the list, but you won't find it! That's because the list is updated over time, but you can find it in the original: https://hg.mozilla.org/mozilla-centr...b096219c#l1.45
^ Awesome, very well done ntubski
I didn't realize that MD5 is hex/base16. For me it was just ASCII with [a-f0-9] range...
Question: why not encode base16 into base64 directly? Would there be any drawback?
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Quote:
Originally Posted by Woolie Wool
Have you considered that some Firefox users are parents? Parents take care of these little creatures called "children", who are incompetent, at least in law, to make decisions for themselves, thus parents have the option of a content filter. If you do not use it, it does not affect you.
You are responsible for your prodgeny and nobody else. It does affect me -- for example I had yo tell my ISP "I want to see porn'" just to get a slightly less filtered internet. What is wrong with you people? Parent your children properly! Stop making everyone else a victim of your inability to parent!
Question: why not encode base16 into base64 directly? Would there be any drawback?
Not sure what you mean. If you meant the command pipeline I posted above, it's just that I'm not aware of any base16->base64 program. If you meant the Firefox code, then it already encodes directly to base64 (without going to base16 at all).
PS Can't you guys take your off-topic "Censorship!" vs "Think of the children!" arguments to another thread?
what a perfect way of showing a computer-literate kid where the naughty stuff is!
Quote:
Originally Posted by ntubski
It's not really a content filter, it just blocks sites from showing on the "new tab screen". You (or your children) can still visit as much as you want...
oh i see. probably makes sense, but way too much work to keep a list like that updated...
also it sort of implies that FF users go to "bad" sites and want to hide that from other users...
______________________
Quote:
Originally Posted by fido_dogstoyevsky
Actually one of the required competencies for a parent is the ability to supervise their children and not rely on some third party.
Quote:
Originally Posted by fido_dogstoyevsky
If you're not willing or able to supervise 24/7 you shouldn't consider being a parent.
Edit: "supervise" means watching for problems, not necessarily "forbidding".
QFT!
definitely true for the first few years; it gets easier after that.
what a perfect way of showing a computer-literate kid where the naughty stuff is!
Not sure if it's a criticism towards me but, just in case, do you really think computer-literate kids need that kind of listing to locate naughty stuff nowadays? ^^
Quote:
Originally Posted by ntubski
Not sure what you mean. If you meant the command pipeline I posted above, it's just that I'm not aware of any base16->base64 program. If you meant the Firefox code, then it already encodes directly to base64 (without going to base16 at all).
I was just referring to your following sentence:
Quote:
The problem is that md5sum prints the hash in base16, so we're getting the base64 of the base16 ASCII encoding.
That's why you suggested to convert base16 to binary via xxd and then to base64.
My question is: would there be any drawback to convert from base16 to base64 directly? I don't mean a program which would do that without explicitely going to temporary binary form, but I really mean a base64 of a base16 string. In other words I mean:
My question is: would there be any drawback to convert from base16 to base64 directly? I don't mean a program which would do that without explicitely going to temporary binary form, but I really mean a base64 of a base16 string. In other words I mean:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.