Firefox adult/drug/gambling/alcohol site filter: md5 encryption/deciphering & base64 encoding/decoding
Following that article, I'm trying to understand how one can go from https://dxr.mozilla.org/mozilla-cent...ilterAdult.jsm to https://github.com/matthewruttley/co...ter/sites.json.
It seems base domains are first md5 encrypted and then base64 encoded but I cannot verify that with any provided example... Let's take "bet365.com": Code:
$ echo -n "bet365.com" | md5sum I've certainly missed something because my last base64 string:
...but I don't know what/where. Any hint please? Thanks :) |
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.
|
Quote:
|
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.
|
Personally, the first thing I do with Firefox is turn off ALL of that new tab stuff. I configure it to give me the search page for DDG.
So, I can't say if it's even possible to turn of the referenced filtering. Discussion of whether or not the filter is seems, to me, to be off-topic. 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. |
Quote:
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". |
Quote:
It's a possibility indeed. Quote:
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...) |
Quote:
Quote:
Code:
$ echo -n "bet365.com" | md5sum Code:
$ echo -n "bet365.com" | md5sum | tr -dc 'a-f0-9' Code:
$ echo -n "bet365.com" | md5sum | tr -dc 'a-f0-9' | xxd -r -p | base64 |
^ 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? |
Quote:
|
Quote:
PS Can't you guys take your off-topic "Censorship!" vs "Think of the children!" arguments to another thread? |
Quote:
Quote:
also it sort of implies that FF users go to "bad" sites and want to hide that from other users... ______________________ Quote:
Quote:
definitely true for the first few years; it gets easier after that. |
Quote:
Quote:
Quote:
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: Code:
echo -n "bet365.com" | md5sum | tr -dc 'a-f0-9' | base64 Code:
echo -n "bet365.com" | md5sum | tr -dc 'a-f0-9' | xxd -r -p | base64 Quote:
|
Quote:
|
All times are GMT -5. The time now is 04:37 PM. |