'How to block specific URIs in the Firefox source code?

I apologize, I'm new to Firefox's source code structure, and have bad English.

I want to make a compiled version of Firefox with some (hardcoded) URIs being blocked.

I was looking at the mozilla-unified\netwerk folder for a suitable place to block URIs, but couldn't find a good place.

Any idea about a good cpp file to place URI-blocking code?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source