Question

  • Creator
    Topic
  • #4154335

    is there a way to disable downloading certain file types in a browser ?

    by safnah ·

    Hello everyone

    is there a way to disable downloading certain file types in a browser ? or even all files ?

    • This topic was modified 5 months, 3 weeks ago by safnah.

You are posting a reply to: is there a way to disable downloading certain file types in a browser ?

The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our Community FAQs for details. All submitted content is subject to our Terms of Use.

All Answers

  • Author
    Replies
    • #4154337
      Avatar photo

      Re: disable downloading in browser

      by kees_b ·

      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.

      • #4154392

        Reply To: is there a way to disable downloading certain file types in a browser ?

        by safnah ·

        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.

        • #4154403
          Avatar photo

          Reply To: is there a way to disable downloading certain file types in a browser ?

          by birdmantd ·

          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.

    • #4154458
      Avatar photo

      Varies with the browser. Chrome does have 5 settings.

      by rproffitt ·

      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.

    • #4155561

      disable downloading certain file types in a browser

      by Harisamer214 ·

      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.

    • #4171249

      Yes, it’s possible to disable the downloading of certain file types

      by LouisDay ·

      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>

Viewing 3 reply threads