bunkerity / bunkerity/bunkerweb

[FEATURE] Subdomain wildcard / regex

Open
#633 14 comments 7 reactions 1 assignee Assigned to @TheophileDiot View on GitHub
core enhancement
Dominant language
Python
Stars
10.9k
Forks
643
Avg merge
1d 10h
Merged PRs (30d)
42

Description

### What's needed and why?

Sometimes you want to forward all subdomains to your upstream proxy. If you got multiple TLDs for example, you'd have to declare a config for each of them. Also you might want to capture all subdomains. I added some examples below

### Implementations ideas (optional)

Add the ability to use a regex, here are some examples of how one could use it:

```
.*\.?example\.com - Allow any subdomain like test.example.com 24hours.example.com
[a-z]+\.example\.com - Allow any char subdomains like test.example.com abc.example.com
example\.(com|net|org) - Catch multiple TLDs at once like example.com example.net example.org
```

### Code of Conduct

- [X] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.