Django HTTP Proxy
django 代理服务,格式为 url('proxy/(?P\d+)/(?P.*)', proxy_view), http为1时表示是http协议 0为https协议
加入了crsf,避免跨域问题
http代理访问地址为 https://xxx/proxy/1/www.baidu.com/
https代理访问地址为 https://xxx/proxy/0/www.baidu.com/
完全支持put post 等方法带参
Installation
Install with
$ pip install django-proxy-crsf
Overview
Forward as close to an exact copy of the request as possible along to a given url. Respond with as close to an exact copy of the resulting response as possible.
Includes a view function that can be used directly from a URL spec:
from proxy.views import proxy_view
urlpatterns = patterns(
...
url('proxy/(?P<http>\d+)/(?P<url>.*)', proxy_view),
...
)
License
Copyright © blackjack0v0
All rights reserved.
Metadata
Release files for django-proxy-crsf 2.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-proxy-crsf-2.3.3.tar.gz | 6.4 kB | Without provenance | Details for django-proxy-crsf-2.3.3.tar.gz |
Release files / django-proxy-crsf-2.3.3.tar.gz
| Download URL | django-proxy-crsf-2.3.3.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a09fc9befbd6c4fc18d5cf6b92a47a165ae1d01d056958c361d69226b9772301
|
|
BLAKE2b-256 checksum How to use checksums |
b7a64fe22618b3547ee127a3193f95fe8f3d49f8effba4168f04373fe555518d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.7.0 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/2.7.18
|
Security for django-proxy-crsf 2.3.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.