https://github.com/vendicated/githubwebhookproxy
A proxy to prevent github webhook star spam
https://github.com/vendicated/githubwebhookproxy
Last synced: 3 months ago
JSON representation
A proxy to prevent github webhook star spam
- Host: GitHub
- URL: https://github.com/vendicated/githubwebhookproxy
- Owner: Vendicated
- License: agpl-3.0
- Created: 2022-09-03T20:21:01.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-07-06T16:48:40.000Z (almost 3 years ago)
- Last Synced: 2025-04-06T17:52:34.237Z (about 1 year ago)
- Language: Go
- Homepage: https://ghwp.vendicated.dev
- Size: 34.2 KB
- Stars: 16
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GithubWebhookProxy
A proxy to filter out star spam.
After a user stars a repo, any subsequent stars of the same repo within the next 15 minutes will be ignored.
I have only tested this with discord webhooks, so it may not work correctly with other sites.
## How it works
Visit the homepage and paste your webhook url in the input.
Use the url the site gives you as webhook url. That's it!
When the webhook is fired and the event is a star event, the ID of the repo and the username of the user are stored.
If they star again within the next 15 minutes, the request is dropped.
## Selfhosting
Building ghwp is trivial:
```sh
git clone https://github.com/Vendicated/GithubWebhookProxy
cd GithubWebhookProxy
go build
```
This outputs a binary `ghwp` (or `ghwp.exe` on Windows) that when run will start the server on port 1337
You should then use a web server like Caddy (recommended! [Example Caddyfile that runs behind Cloudflare proxy](/Caddyfile)), NGINX, or Apache to reverse proxy it.
Make sure that the X-Forwarded-For header is set to the requester's ip and has not been spoofed with, as it is used to verify that webhook post requests are genuine requests coming from GitHub