https://github.com/en9inerd/visitor-notifier
Website Visitor Notifier based on CloudFlare Workers and IFTTT Webhooks
https://github.com/en9inerd/visitor-notifier
cloudflare cloudflare-workers ifttt-webhooks
Last synced: 8 months ago
JSON representation
Website Visitor Notifier based on CloudFlare Workers and IFTTT Webhooks
- Host: GitHub
- URL: https://github.com/en9inerd/visitor-notifier
- Owner: en9inerd
- Created: 2023-05-21T15:18:21.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-01-21T22:19:55.000Z (about 2 years ago)
- Last Synced: 2025-03-28T01:55:17.975Z (11 months ago)
- Topics: cloudflare, cloudflare-workers, ifttt-webhooks
- Language: TypeScript
- Homepage:
- Size: 68.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
> :warning: **Attention!** This repository is no longer maintained since IFTTT webhooks are no longer free. You can still use the code as a reference for your own implementation. As an alternative, you can use Node-RED to create a similar workflow, but it will need public ip address.
# Visitor Notifier based on Cloudflare Workers and IFTTT Webhooks
This Cloudflare Worker sends notifications to website owner about visitor activity. It uses the Fetch API to send data to a specified webhook using the IFTTT Maker Webhooks service.
## Deployment
1. Install Wrangler.
2. Authenticate with your Cloudflare account using `wrangler login`.
3. Update `wrangler.toml` with your event name and webhook key.
4. (Optional) Add allowed origins to the whitelist:
- Open the `index.ts` file.
- Modify the `whitelist` array in the following format: `const whitelist: RegExp[] = [/origin1.com/, /origin2.com/];`
- Add regular expressions for the origins you want to allow, e.g., `/origin1.com/` or `/.*\.example\.com/`.
5. Deploy the worker using `wrangler deploy`.
Make sure to follow the instructions and customize the necessary files before deploying the Cloudflare Worker.