Item logo image for Block File Types

Block File Types

1.2(

26 ratings

)
ExtensionWorkflow & Planning
Item media 1 (screenshot) for Block File Types

Overview

Block File Types

Block File Types allows Google Workspace and Chrome Enterprise administrators to selectively block specific local file extensions from opening in Chrome and ChromeOS, while still permitting allowed local files such as PDFs or images. When a user attempts to open a disallowed local file the extension intercepts the navigation and redirects the tab to a local notice page ("This file type is not allowed by your administrator."). ------------------------------------------------------------ ADMINISTRATION & POLICY CONFIGURATION ------------------------------------------------------------ Configure the extension in the Google Admin Console under: Devices > Chrome > Apps & extensions > Users & browsers Select "Block File Types" and enter your policy JSON under "Policy for extensions". Basic example: { "blocktypes": { "Value": ["html", "js"] } } Recommended Admin Console setting: Enable "Allow access to file URLs" (or set "file_url_navigation_allowed": true in ExtensionSettings) so browser-level declarative rules intercept disallowed file:// navigations before they execute or appear in browser history. ------------------------------------------------------------ PERMISSIONS & REASONS REQUIRED ------------------------------------------------------------ * storage: Reads the administrator-configured "blocktypes" policy from chrome.storage.managed and caches the active extension list locally on the device so enforcement works reliably offline and on startup. * tabs: Inspects local tab URLs (including pending navigations and session-restored tabs) and redirects disallowed local files in place to the packaged blocked.html notice page. * webNavigation: Detects local file navigations across both top-level frames and nested child frames (such as iframes) as well as client-side hash or query string updates before a disallowed local file finishes loading. * declarativeNetRequest: Dynamically generates local browser rules from the administrator's "blocktypes" policy to block or redirect matching file:// requests at the browser network layer before file contents execute or record in history. * Host permission (file://*): Scopes network and navigation enforcement strictly to local file:// URLs. Standard web traffic (http:// and https://) is never intercepted, modified, or blocked. ------------------------------------------------------------ PRIVACY ------------------------------------------------------------ All policy checks run 100% locally on the user's device. This extension does not collect, log, store externally, or transmit any browsing history, file paths, URLs, or personal user data.

Details

  • Version
    0.0.4
  • Updated
    November 15, 2026
  • Offered by
    Clay
  • Size
    34.36KiB
  • Languages
    English
  • Developer
    Email
    clay@claycodes.org
  • Non-trader
    This developer has not identified itself as a trader. For consumers in the European Union, please note that consumer rights do not apply to contracts between you and this developer.

Privacy

Manage extensions and learn how they're being used in your organization
The developer has disclosed that it will not collect or use your data. To learn more, see the developer’s privacy policy.

This developer declares that your data is

  • Not being sold to third parties, outside of the approved use cases
  • Not being used or transferred for purposes that are unrelated to the item's core functionality
  • Not being used or transferred to determine creditworthiness or for lending purposes
Search
Clear search
Close search
Google apps
Main menu