mirror of
https://github.com/ergin/nginx-cloudflare-real-ip.git
synced 2026-04-25 05:15:53 +03:00
[PR #10] Use Cloudflare API instead of Website #11
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-cloudflare-real-ip#11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ergin/nginx-cloudflare-real-ip/pull/10
Author: @jaapmarcus
Created: 3/29/2023
Status: 🔄 Open
Base:
master← Head:use-api-instead📝 Commits (6)
f60544aUpdate README.mdb246dc5Update cloudflare-sync-ips.sh575c86cAdd download urlbaeb008Update cloudflare-sync-ips.shcc9b16eUpdate cloudflare-sync-ips.shdb204c5Update README.md📊 Changes
2 files changed (+31 additions, -31 deletions)
View changed files
📝
README.md(+18 -16)📝
cloudflare-sync-ips.sh(+13 -15)📄 Description
Cloudflare Website might show a random check if the visitor is a real user instead of a bot this causes the old system to fail
See: https://github.com/hestiacp/hestiacp/issues/3370
Option would be to use the https://api.cloudflare.com/client/v4/ips how ever it will add a dependency on jq a 200kb tools of phrasing json files.
The API it self is free to use and it has been tested in the last 2 days since then no complains about the changes
Also @myrevery to contribute to the PR it self.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.