Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Can not pass Cloudflare #62

Unanswered
nikissXI asked this question in Q&A
May 19, 2025 · 1 comments · 1 reply
Discussion options

I want to proxy https://poe.com/ , but it was blocked by cloudflare. Somebody knows about it?

from typing import Any
import httpx
import uvicorn
from fastapi_proxy_lib.fastapi.app import reverse_http_app
from httpx import Request
class ModifyHeader(httpx.Auth):
 def auth_flow(self, request: httpx.Request) -> Generator[Request, Any, None]:
 request.headers["host"] = "poe.com"
 request.headers["referer"] = "https://poe.com/"
 print(request.headers)
 yield request
app = reverse_http_app(
 client=httpx.AsyncClient(auth=ModifyHeader()),
 base_url="https://poe.com/",
)
if __name__ == "__main__":
 uvicorn.run(app, host="0.0.0.0", port=17788)

image

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

This works fine for me. How are you accessing the proxy server? Note that it should not be 0.0.0.0.

image

You must be logged in to vote
1 reply
Comment options

My server IP is not "clean". I tested it on another server and it was fine, just like your screenshot. But on this one was blocked by cloudflare

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /