Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there a way to prevent downloading files from the web by just blocking them?

Are there add-ons for any of the major browsers out there that could work or is this not possible to block files from being downloaded from websites and such.

EDIT: What about maybe a firewall/anti-virus type of application?

share|improve this question
    
You specifically mean download to file ("Save target as") or also things e.g. treated by plugins (such as *.pdf)? (And surely not displayed html files and additional files (.js, .css, .jpg) –  Hagen von Eitzen Mar 3 '13 at 19:32
    
More specifically, .exe and executables. –  Rachel Nark Mar 3 '13 at 20:26
1  
That could be handled by your antivirus or proxy –  Hagen von Eitzen Mar 3 '13 at 21:48

2 Answers 2

up vote 1 down vote accepted

What I installed was Public Fox and it allows you to lock down FireFox settings with a password and block files and even URLs.

share|improve this answer

I think that you could use any of the "Ad Block" type plugins to do what you want. You would need to create filters that blocked access to the URL's corresponding to the files needing to be blocked.

Another possibility is to use a PROXY that allows filtering. This is the best solution if you want to do the same blocking for many people - as long as they are all on the same network. Any of the proxies will do this. Most proxy's are run on a separate server (e.g. SQUID) but there are a number that will run locally on a PC and will filter any application trying to access the network.

share|improve this answer
    
surely squid will run locally too?! I have blocked extensions in squid once when I tried it, but you should include how, to the extent that you know. –  barlop Mar 3 '13 at 22:40
    
Ah, yes I knew someone would bring that up ;) But I wasn't really suggesting SQUID as a viable local proxy, it is rather overkill for this question. The AdBlock approach would be my suggestion for local blocking. Explanation of setting up a server-based proxy is another question I think. –  Julian Knight Mar 3 '13 at 22:44
    
Could an ad block plugin work if I did a *.exe for example? –  Rachel Nark Mar 4 '13 at 5:33
    
Well, I think so, simply add a wildcard URL something like *.exe should prevent any access to an exe resource. But I've not done it myself so it needs testing - easy enough to do. –  Julian Knight Mar 4 '13 at 6:27
    
blocking URLs ending in *.exe does not prevent all exe files from downloading: many sites use download URLs like example.com/dl.php?12345 which then download an exe (or any other) file. –  törzsmókus Mar 23 at 6:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.