TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

How to bypass Cloudflare and how to protect your websites

5 点作者 sylvain_kerkour超过 1 年前

1 comment

kentonv超过 1 年前
Note that when allowlisting Cloudflare IPs as a defense mechanism, it&#x27;s also important to make sure your web server only responds to requests whose `Host` header actually specifies a host in your domain. Otherwise, an attacker can set up their own Cloudflare account and configure your origin IP as their own origin IP, and thus cause requests to be sent to your origin from Cloudflare -- but the `Host` header will identify the attacker&#x27;s domain.<p>But I definitely would recommend Cloudflare Tunnel or Authenticated Origin Pulls (with per-zone certificates) instead of allowlisting IPs.<p>(Disclosure: I work for Cloudflare.)