跳转到主要内容

控制远程端信息。

项目描述

该库是aiohttp.web服务器的有用工具集。

工具的完整列表如下

  • AllowedHosts – 仅允许指定的主机访问入站连接。

  • BasicAuth – 通过基本身份验证保护Web应用。

  • Cloudflare – 确保Web应用由CloudFlare保护。

  • ForwardedRelaxedForwardedStrict – 处理Forwarded HTTP头并修改相应的schemehostremote属性,在强安全和宽松模式下。

  • Secure – 确保Web应用仅通过HTTPS(SSL/TLS)处理,自动将HTTP重定向到HTTPS。

  • XForwardedRelaxedXForwardedStrict - 与 ForwardedRelaxedForwardedStrict 相同,但处理旧的 X-Forwarded-* 头部信息,而不是新的标准 Forwarded

更多信息请参阅 https://aiohttp-remotes.readthedocs.io

此库由 Ocean S.A. 赠送 https://ocean.io/

感谢公司的贡献。

由以下机构支持

AWSAWS 云计算和安全赞助商 DatadogDatadog 监控 FastlyFastly 内容分发网络(CDN) GoogleGoogle 下载分析 MicrosoftMicrosoft PSF赞助商 PingdomPingdom 监控 SentrySentry 错误记录 StatusPageStatusPage 状态页面