An open API service indexing awesome lists of open source software.

https://github.com/kaelianbaudelet/locked

Locked — The great companion to your ControlD for easily blocking and unblocking your domains.
https://github.com/kaelianbaudelet/locked

block controld dns locked unblock

Last synced: 4 months ago
JSON representation

Locked — The great companion to your ControlD for easily blocking and unblocking your domains.

Awesome Lists containing this project

README

          

# Locked

![Locked](https://github.com/user-attachments/assets/2a4277f8-5363-49e7-8054-36d18881b58c)

**Locked** is a web application designed as a practical add-on for **ControlD** users. It makes it easy to manage access to sites blocked or unblocked by **ControlD DNS**, while providing additional security information for each domain. To use this project you need a **ControlD subscription**.

# Preview

| ![Image1](https://github.com/user-attachments/assets/da6a4e7a-a0cd-4707-8809-46e1a2d561b6) | ![Image 2](https://github.com/user-attachments/assets/39e6b581-32b4-4e5b-9f08-d8f302dee50c) |
| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
| ![Image 3](https://github.com/user-attachments/assets/87a6c2bf-943d-4218-8cca-63fd6220670f) | ![Image 4](https://github.com/user-attachments/assets/0437fcd3-0fb9-4b14-9935-1259831aa013) |

# Features

- **Fast domain blocking and unblocking**: add or remove domains from your ControlD block lists with a single click.
- **ControlD subscription overview**: quickly view the number of days remaining on your ControlD subscription.
- **Security information**: view domain security information directly from the block/unblock page. This information is provided by VirusTotal via a personal API key.

# How does it work?

When **ControlD** blocks a site, a customised blocking page is displayed (if this option is enabled in ControlD). Locked integrates directly with this page to provide a simplified management experience:

- **Instant unblocking**: Locked interacts with the ControlD API to unblock the site instantly. This feature enables access to be restored quickly while maintaining visibility of the site's security information.

- **Fast blocking**: as well as unblocking, the Locked application can also block a site in a matter of seconds. Simply enter the URL of a domain in the Locked interface to add it to the ControlD blocking lists.

- **ControlD subscription tracking**: in Locked, users can quickly see information about their ControlD subscription, including the number of days remaining.

Locked transforms the management of blocked and unblocked sites into a simple, secure and efficient process.

# Requirements

> [!IMPORTANT]
> To use Locked, you will need :
>
> - A ControlD subscription in Some Control or Full Control.
> - A VirusTotal API key to access domain security information (optional but recommended).
> - An active ControlD API key.

# Installation

Follow the steps below to install the development repo and start Locked :

1. Clone the repository :

```bash
git clone https://github.com/Afi-dev/locked.git
```

2. Install the dependencies :

```bash
cd locked
pnpm install or npm install
```

Here's an improved version:

3. Configuring the `.env` file

Copy the `.env.example` file and rename it to `.env`.

- **ControlD API Key** (required) :

> [!IMPORTANT]
> Make sure you configure a ControlD API key with **write permissions**.

Paste your **ControlD API** key into the `.env` file to activate the blocking and unblocking functions.

- **VirusTotal API Key** (optional) :

To display domain security information, also paste your **VirusTotal API** key to the `.env` file.

4. Run Locked

```bash
npx next dev
pnpx next dev
```

# License

Copyright © 2024 Kaelian BAUDELET and contributors.

Code published under the **MIT licence.**