GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - keksiqc/ctrld-sync: A tiny Python script that keeps your Control D Folders in sync with a set of remote block-lists.

BranchesTags
Open more actions menu

Latest commit

 

History

36 Commits
36 Commits

Folders and files

NameName
Last commit message
Last commit date
.devcontainer
.devcontainer
 
 
.github/workflows
.github/workflows
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
.python-version
.python-version
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
main.py
main.py
 
 
pyproject.toml
pyproject.toml
 
 
uv.lock
uv.lock
 
 

Repository files navigation

Control D Sync

Note

Consider using 0x11DFE/controld-hagezi-sync, as it currently has more features.

A tiny Python script that keeps your Control D Folders in sync with a set of remote block-lists.

What it does

  1. Downloads the current JSON block-lists.
  2. Deletes any existing folders with the same names.
  3. Re-creates the folders and pushes all rules in batches.

Quick start

Obtain Control D API token

  1. Log in to your Control D account.
  2. Navigate to the "Preferences > API" section.
  3. Click the "+" button to create a new API token.
  4. Copy the token value.

Obtain Control D profile ID

  1. Log in to your Control D account.
  2. Open the Profile you want to sync.
  3. Copy the profile ID from the URL.
https://controld.com/dashboard/profiles/741861frakbm/filters
                                        ^^^^^^^^^^^^

Configure the script

  1. Clone & install

    git clone https://github.com/your-username/ctrld-sync.git
    cd ctrld-sync
    uv sync
  2. Configure secrets
    Create a .env file (or set GitHub secrets) with:

    TOKEN=your_control_d_api_token
    PROFILE=your_profile_id  # or comma-separated list of profile ids (e.g. your_id_1,your_id_2)
  3. Configure Folders
    Edit the FOLDER_URLS list in main.py to include the URLs of the JSON block-lists you want to sync.

Note

Currently only Folders with one action are supported. Either "Block" or "Allow" actions are supported.

  1. Run locally

    uv run python main.py
  2. Run in CI
    The included GitHub Actions workflow runs daily at 02:00 UTC and on demand.

Configure GitHub Actions

  1. Fork this repo.
  2. Go to the "Actions" Tab and enable actions.
  3. Go to the Repo Settings.
  4. Under "Secrets and variables > Actions" create the following secrets like above, under "Repository secrets":
    • TOKEN: your Control D API token
    • PROFILE: your Control D profile ID(s)

Requirements

  • Python 3.12+
  • uv (for dependency management)

About

A tiny Python script that keeps your Control D Folders in sync with a set of remote block-lists.

Resources

Readme
MIT license

Code of conduct

Code of conduct
Activity

Stars

51 stars

Watchers

3 watching

Forks

45 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.