flask-fool
A Flask extension that prevents browser access to API by faking browser error pages.
Usage
from flask import flask
from flask_fool import FlaskFool
app = Flask('myapp')
fooler = FlaskFool(app)
From now if any error is caught by the application and the query has been emitted by a browser, an error page corresponding to the used browser will be returned, suggesting that the queried domain does not exist.
Disallow browser access
You can also totally prevent for browser access by using disallow_browser flag :
fooler = FlaskFool(app, disallow_browser=True)
User agent filtering
You can also just want your API only be reachable by a specific user agent. In that case you can specify a custom user agent for which only request will be received :
fooler = FlaskFool(app, user_agent='MyCustomUserAgent')
Metadata
Release files for Flask-Fool 1.0.9
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 |
|---|---|---|---|---|
| flask-fool-1.0.9.tar.gz | 67.3 kB | Without provenance | Details for flask-fool-1.0.9.tar.gz |
Release files / flask-fool-1.0.9.tar.gz
| Download URL | flask-fool-1.0.9.tar.gz |
|---|---|
| Size | 67.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
075520f7a5661b7a6d713657f5f3a6085f25af8a19508a1b58b6328d5edda93a
|
|
BLAKE2b-256 checksum How to use checksums |
7d701f0632cf8ef12b8a2a954f1316a42bcf363f90cbe5e70ced39636ac0f55d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for Flask-Fool 1.0.9
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.