[PR #10] Use Cloudflare API instead of Website #11

Open
opened 2026-02-25 22:30:26 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ergin/nginx-cloudflare-real-ip/pull/10
Author: @jaapmarcus
Created: 3/29/2023
Status: 🔄 Open

Base: masterHead: use-api-instead


📝 Commits (6)

📊 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.

## 📋 Pull Request Information **Original PR:** https://github.com/ergin/nginx-cloudflare-real-ip/pull/10 **Author:** [@jaapmarcus](https://github.com/jaapmarcus) **Created:** 3/29/2023 **Status:** 🔄 Open **Base:** `master` ← **Head:** `use-api-instead` --- ### 📝 Commits (6) - [`f60544a`](https://github.com/ergin/nginx-cloudflare-real-ip/commit/f60544ad205c93f07de7b8fc53b0da31d908e69c) Update README.md - [`b246dc5`](https://github.com/ergin/nginx-cloudflare-real-ip/commit/b246dc579e82218651ca22e8e8864a5f792b89f4) Update cloudflare-sync-ips.sh - [`575c86c`](https://github.com/ergin/nginx-cloudflare-real-ip/commit/575c86ce48328550608544c7d8544ed21833e125) Add download url - [`baeb008`](https://github.com/ergin/nginx-cloudflare-real-ip/commit/baeb008414e425c74e492b13f3c6afbd81230bd1) Update cloudflare-sync-ips.sh - [`cc9b16e`](https://github.com/ergin/nginx-cloudflare-real-ip/commit/cc9b16e4f4189b9ebb60b69b84d02b12e92a4e0d) Update cloudflare-sync-ips.sh - [`db204c5`](https://github.com/ergin/nginx-cloudflare-real-ip/commit/db204c5c150c3372ebd924aa21b7429e040d9c09) Update README.md ### 📊 Changes **2 files changed** (+31 additions, -31 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+18 -16) 📝 `cloudflare-sync-ips.sh` (+13 -15) </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-cloudflare-real-ip#11
No description provided.