Skip to content

mrf0rtuna4/PolicyLockLLM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

PolicyLock LLM

GitHub release Chrome Extension License Issues

A Chrome Extension for restricting access to AI and Large Language Model (LLM) services in managed, educational, and enterprise environments.


Overview

PolicyLock LLM provides centralized control over access to modern AI services through Chrome's Declarative Net Request API.

The extension can prevent access to conversational AI platforms, image generation services, video generation platforms, and other AI-powered tools by redirecting requests to a customizable block page.

Typical use cases include:

  • Educational environments
  • Corporate compliance requirements
  • Examination and assessment systems
  • Managed workstations
  • Research environments requiring AI restrictions

Features

Access Control

  • Block access to popular AI platforms
  • Categorized filtering (Text, Image, Video)
  • Dynamic rule generation
  • Local configuration storage

Security Controls

  • Password-protected configuration
  • Hard Block mode
  • Self-lock functionality
  • Persistent protection across browser restarts

User Experience

  • Modern management interface
  • Dark mode support
  • Localization support
  • Custom block page

Registry-Based Architecture

  • External AI service registry
  • Simplified service maintenance
  • Community-driven service updates
  • GitHub Issue workflow for missing platforms

Supported Categories

Category Examples
Text AI ChatGPT, Claude, Gemini, Grok, DeepSeek, Perplexity
Image AI Midjourney, Leonardo AI, Ideogram, CivitAI
Video AI Runway, Kling, Hailuo, Luma, Sora

The complete service registry is maintained separately and can be expanded without redesigning the extension architecture.


Installation

From Source

git clone https://github.com/mrf0rtuna4/PolicyLockLLM.git
  1. Open:
chrome://extensions
  1. Enable Developer Mode
  2. Select Load unpacked
  3. Choose the repository directory

Configuration

The extension stores its configuration locally using:

chrome.storage.local

Available options:

Setting Description
Blocking Enable or disable AI service restrictions
Category Select AI service category
Password Administrator protection
Hard Block Prevent disabling without password

AI Service Registry

PolicyLock LLM uses a registry-based model.

Example:

{
  "id": "chatgpt",
  "name": "ChatGPT",
  "company": "OpenAI",
  "category": "text",
  "domains": [
    "chatgpt.com"
  ]
}

The registry can be distributed through:

  • GitHub Raw
  • CDN
  • Internal enterprise infrastructure

Missing a Service?

AI platforms evolve rapidly.

If a service is not currently covered by the registry, please open an issue:

https://github.com/mrf0rtuna4/PolicyLockLLM/issues/new

Include:

  • Service name
  • Primary domain
  • Category (Text / Image / Video)
  • Optional documentation links

Project Structure

PolicyLockLLM/
β”œβ”€β”€ _locales/
β”œβ”€β”€ scripts/
β”‚   β”œβ”€β”€ main.js
β”‚   β”œβ”€β”€ themes.js
β”‚   └── i18n.js
β”œβ”€β”€ blocked.html
β”œβ”€β”€ main.html
β”œβ”€β”€ manifest.json
β”œβ”€β”€ llms.json
└── background.js

Limitations

PolicyLock LLM is implemented as a browser extension and should not be considered a complete endpoint-control solution.

Users with administrative access to the operating system or browser may still remove or modify the extension.

For stronger enforcement, consider:

  • Chrome Enterprise Policies
  • Microsoft Edge Management Policies
  • Managed Browser Deployments
  • Endpoint Management Solutions

Privacy

PolicyLock LLM does not:

  • Collect analytics
  • Track browsing activity
  • Send user data to external servers
  • Store information outside browser storage

All configuration is stored locally unless a custom registry source is configured.


License

See the LICENSE file for details.

About

πŸ”Restrict access to Large Language Model (LLM) websites for corporations and enterprises.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors