Giter VIP home page Giter VIP logo

chromium-download-policy's Introduction

Chromium-Erweiterung: Download-Richtlinie

⚠️ Hinweis: Erweiterung befindet sich noch in der Entwicklung!

Chromium bietet die Möglichkeit, über Gruppenrichtlinien das Downloadverzeichnis zu erzwingen.
Problem: Downloads über die Kontextmenü-Funktion (Bild|Link|...) Speichern unter können nicht kontrolliert werden.

Bei der Nutzung eines Chromium-Browsers als zentrale Downloadlösung sind weitere Dateioperationen, wie die Prüfung durch mehrere Antiviruslösungen oder eine Bereitstellung auf Austauschlaufwerken erforderlich.
Dadurch ist es zwingend erforderlich, dass alle Downloads stets in fest definierten Pfaden abgelegt werden.

Mithilfe dieser Erweiterung wird der Download auch über das Konktextmenü auf ein bestimmtes Verzeichnis beschränkt.
Zusätzlich wird eine umfangreiche Protokollierung der Downloads.

Implementierte Funktionen

  • Blockierung aller Downloads, die nicht in das per Registry-Eintrag definierte Verzeichnis gespeichert werden
  • Darstellung von Meldungen in Popup inkl. Badge
  • Protokollierung aller Downloads in eine Logdatei USERNAME_download.log in dem per Registry-Eintrag definierten Verzeichnis
  • Kompatibilität nur für Windows

Registry-Einträge

Für die Definition des erlaubten Downloadverzeichnisses und des Protokollverzeichnisses ist jeweils ein Registry-Einträg zu erstellen.
HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\${browserVendor}\\${browserName}\\3rdparty\\extensions\\${chrome.runtime.id}\\policy

  • gpoDownloadPath (REG_SZ)
  • gpoLogPath (REG_SZ)

Hinweis:
Sofern gpoLogPath nicht definiert (oder leer), erfolgt die Protokollierung in einen logs-Unterordner im Verzeichnis der Host-Anwendung.

Installation der Hostanwendung

Für die Protokollierung in eine Logdatei auf dem Dateisystem ist eine Host-Anwendung in Form von einem Powershell-Skript (Windows) erforderlich.

  • Repository herunterladen und entpacken
  • Kommandozeile mit erhöten Rechten in Unterordner host öffnen
  • Installation der Host-Anwendung ausführen: powershell -ExecutionPolicy RemoteSigned -File setup.ps1
  • Zur Deinstallation der Host-Anwendung: powershell -ExecutionPolicy RemoteSigned -File uninstall.ps1

Screenshots

Popup ohne Meldungen und Erweiterungsoptionen

Abgebrochener Download mit Benachrichtigungspunkt und angezeigte Fehlermeldung

Logdatei

chromium-download-policy's People

Contributors

kngp14 avatar

Watchers

 avatar

chromium-download-policy's Issues

Popup for canceled Downloads

If download path is gpoDownloadPath the download will be cancled.
Currently there is only an information written to the console.

Idea: Using popup.html to present a message to the user

Check Host-Communication

Check communication to host on:

  • browser startup
  • loading options_page

If host is not installed probably there will only be details on console of background_page

Call Scanner

Currently the completed download will not be scanned by another ps1 script file. (which should also move the download to a secure share)

  • Registry value with path to ps1 script
  • test path
  • pass filename and path after completed download to ps1 script

Log to file

Currently every download will be logged to the console.

Idea: Logging into file or something else

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.