Skip to content

Add allowed target domains feature for URL shortening#973

Open
softzer0 wants to merge 1 commit intothedevs-network:mainfrom
softzer0:main
Open

Add allowed target domains feature for URL shortening#973
softzer0 wants to merge 1 commit intothedevs-network:mainfrom
softzer0:main

Conversation

@softzer0
Copy link
Copy Markdown

@softzer0 softzer0 commented Jan 30, 2026

Adds an optional URL domain whitelist feature. When the ALLOWED_TARGET_DOMAINS environment variable is set, only URLs from specified domains can be shortened. Supports wildcard patterns (e.g., *.github.qkg1.top allows both github.com and all its subdomains). When left empty, all domains are allowed, preserving existing behavior.

Copy link
Copy Markdown

@codeCraft-Ritik codeCraft-Ritik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice approach

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants