I'm trying to block certain URLs while accessing a website. Meaning I only make the requests required to proceed.
There is one url automatically loading a 5 mb code I can't block disabling css by firefox profiles.
I read selenium doesn't allow that amount of control but I'm unsure if there is some way to set it using an addon.
However I'm unable to control block url addon using python.
Is there any way apart from modifying the hosts file? I successfully blocked the urls using network monitor programs but they aren't user friendly at all.