Minimalist Flask Addon for slapping bots using Proof-of-Work
Project description
July
Proof-of-Work (PoW) Security Measure to protect your flask apps from Bots and Scrapers
Setup
Simply set up July in a Flask App by typing
from flask import Flask
from flask_july import Flask_July
app = Flask(__name__)
app.config["SECRET_KEY"] = "Super Secret!"
july = Flask_July(app)
By default, once your app runs, it will show something like
(Don't worry! Anything under /static is always allowed to be accessed)
But what if you don't wanna include every Path? Well, using the below code, you can set up exclusions
july = Flask_July(app)
@july.validate
def validate_fn():
if request.path.startswith("/no-bots-pls"): return True
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flask_july-0.1.2.tar.gz.
File metadata
- Download URL: flask_july-0.1.2.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b633546f885164f23b28b45d293eaf79f727e12506231d67f1d059e762291b53
|
|
| MD5 |
ddd8b2b19999fdc1e349e54138228826
|
|
| BLAKE2b-256 |
d81a582b53ee893506cf086980cc882e880ec7bf7c27788d4cf1136e6374249f
|
File details
Details for the file flask_july-0.1.2-py3-none-any.whl.
File metadata
- Download URL: flask_july-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
111edd816975fc706702a3eb74b0996be1e77eb0c783001c8df66bb53ac492a2
|
|
| MD5 |
09917b75228cd927ca7d28d6b866060c
|
|
| BLAKE2b-256 |
68bac1f46424c0494fb9b004f92db0a9cd4e5e356a25308217b3428e4b6246d9
|