We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

Sykje yn Support

Mij stipescams. Wy sille jo nea freegje in telefoannûmer te beljen, der in sms nei ta te stjoeren of persoanlike gegevens te dielen. Meld fertochte aktiviteit mei de opsje ‘Misbrûk melde’.

Mear ynfo

Dizze konversaasje is argivearre. Stel in nije fraach as jo help nedich hawwe.

Is there a way to block all downloads in firefox?

more options

Hello support,

Simple question. Is there a way to block all downloads in firefox (quantum)? I want to restrict all downloads from firefox. i looked everywhere and i caouldn't find an answer.

Best regars, Filip

Hello support, Simple question. Is there a way to block all downloads in firefox (quantum)? I want to restrict all downloads from firefox. i looked everywhere and i caouldn't find an answer. Best regars, Filip

Alle antwurden (4)

more options

Hi Filip, what do you consider to be a download? Would that be only files that trigger the Open/Save dialog, or go into the Temp or Download folder, or would it also include files that Firefox displays such as images and videos?

I don't know whether there are any add-ons that offer a feature to block these various types of content, but it's certainly possible. If you haven't already, you can search here: https://addons.mozilla.org/firefox/extensions/

more options

Hi, only files that trigger Open/Save dialog and go into the Download folder.

I used one add-on and it's incompatible with quantum version of firefox.

more options

Maybe lock the download folder to a specific folder and make sure that no write access is possible to this folder. This might have to include the temp folder that Firefox uses by default to store files temporarily or make sure to cleanup this folder regularly.

more options

Extensions can inspect the response headers that are associated with a server response.

https://developer.mozilla.org/Add-ons/WebExtensions/API/webRequest

So an extension can look at these two headers --

  • content-disposition: attachment indicates an intended download
  • content-type may be something Firefox cannot display, such as a Word document or .mov video file

-- and cancel a request based on what it sees. (This may or may not save on bandwidth because Firefox might keep receiving packets in the background while the analysis is done.)

So I think someone could create an extension to cancel requests when the server is sending something that isn't on a short list of allowed content types, or is a forced download. But has anyone done that or will anyone do that? Your guess is as good as mine.