Question
-
CreatorTopic
-
August 27, 2023 at 3:19 am #4154335
is there a way to disable downloading certain file types in a browser ?
Lockedby safnah · about 1 year ago
Hello everyone
is there a way to disable downloading certain file types in a browser ? or even all files ?
- This topic was modified 1 year ago by safnah.
Topic is locked -
CreatorTopic
All Answers
-
AuthorReplies
-
-
August 27, 2023 at 4:31 am #4154337
Re: disable downloading in browser
by kees_b · about 1 year ago
In reply to is there a way to disable downloading certain file types in a browser ?
First of all, that depends on the browser. If you make your own one, using the open source chromium from https://github.com/chromium/chromium it can be yes, depending on what you program.
If it’s not in the settings of the browser you use, the answer, alas, is no.
I checked Firefox. It allows you to specifiy a program to open the downloaded file with a certain extension. If you use a program that opens the file and deletes it, it’s only on your PC for a very short time. But few users would set their setting to delete a file they download, so it seems a quite useless setting. There is no way to specify it in the Windows registry or in a policy, so that you as a system manager can set it, and the ordinary user can’t undo it. That’s for the simple reason that commercial browsers are made to run in other OS’es than Windows.
Feel free to ask Microsoft to add the option to Edge in such a way that it can’t be overwritten by non-administrator users in your company network. But sorry if using Chrome is the company standard.
-
August 27, 2023 at 10:44 am #4154392
Reply To: is there a way to disable downloading certain file types in a browser ?
by safnah · about 1 year ago
In reply to Re: disable downloading in browser
thank you so much for that informative answer but i guess there’s still no way to accomplish this important task specially with so many ransomware spread over the internet.
-
August 27, 2023 at 12:02 pm #4154403
Reply To: is there a way to disable downloading certain file types in a browser ?
by birdmantd · about 1 year ago
In reply to Reply To: is there a way to disable downloading certain file types in a browser ?
My advice to avoid ransomware is to only download from trusted internet sites/sources and not to randomly click on links that you see on the page but don’t know/trust. A little due diligence goes a long way. Sometimes you cannot rely on someone or something else to do it for you.
-
-
-
August 27, 2023 at 2:57 pm #4154458
Varies with the browser. Chrome does have 5 settings.
by rproffitt · about 1 year ago
In reply to is there a way to disable downloading certain file types in a browser ?
Read https://support.google.com/chrome/a/answer/7579271?hl=en and see if you can use that.
Also, the answer is no.
-
August 30, 2023 at 11:02 am #4155561
disable downloading certain file types in a browser
by Harisamer214 · about 1 year ago
In reply to is there a way to disable downloading certain file types in a browser ?
1. Google Chrome: Open Chrome and go to Settings > Advanced > Downloads. Under Download restrictions, select the file types that you want to block.
2. Mozilla Firefox: Open Firefox and go to Menu > Options > General > Downloads. Under Allowed and blocked file types, select the file types that you want to block.
3. Microsoft Edge: Open Edge and go to Settings > Cookies and site permissions > Downloads. Under Allowed and blocked file types, select the file types that you want to block.
4. Safari: Open Safari and go to Preferences > General > Downloads. Under File types to download, uncheck the file types that you want to block.
-
April 9, 2024 at 7:04 am #4228652
Great Information
by kanewilliam325 · about 5 months, 1 week ago
In reply to disable downloading certain file types in a browser
Great information. Really very helpful.
Thank you for sharing it.
-
-
October 3, 2023 at 1:06 pm #4171249
Yes, it’s possible to disable the downloading of certain file types
by LouisDay · about 11 months, 3 weeks ago
In reply to is there a way to disable downloading certain file types in a browser ?
One common approach is configuring the web server’s .htaccess file for Apache servers. You can use directives like FilesMatch or mod_rewrite to block specific file extensions or types.
This will prompt the browser to treat PDF files as attachments, triggering a download prompt rather than displaying them in the browser. Be cautious when modifying server configurations and always test thoroughly to ensure the desired behavior without unintended consequences.
Additionally, if you’re using a different web server, there are similar approaches to achieve this kind of restriction.
For example, to block downloading PDF files, you can use:
<FilesMatch “\.(pdf)$”>
Header set Content-Disposition “attachment”
</FilesMatch> -
April 4, 2024 at 3:38 pm #4227723
is there a way to disable downloading certain file types in a browser ?
by cassharper030 · about 5 months, 2 weeks ago
In reply to is there a way to disable downloading certain file types in a browser ?
most browsers allow you to set it so you’re prompted to choose a location to save every download. This way, you can decide whether or not to download a file based on the extension (like .exe or .zip).
For completely blocking all downloads, that’s trickier and depends on your browser and system. It might involve browser extensions or system-level security settings.
-
April 27, 2024 at 9:47 am #4237352
Reply To: is there a way to disable downloading certain file types in a browser ?
by cassharper030 · about 4 months, 3 weeks ago
In reply to is there a way to disable downloading certain file types in a browser ?
Yes, there are ways to limit downloads in most browsers!
Block specific file types:
1. Google Chrome: Open Chrome settings > Advanced > Downloads. Under “Downloads,” you can choose to block specific file extensions like “.exe” or “.zip”.Block all downloads:
This option is generally not recommended as it can be inconvenient. However, some browsers allow it:
1. Chrome: There’s no built-in option, but extensions can achieve this (use with caution).
2. Firefox: Limited functionality. You can set Firefox to always ask where to save files before downloading, making it a manual process.
-
-
AuthorReplies