Skip to main content

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 this

(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

flask_july-0.1.3.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flask_july-0.1.3-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file flask_july-0.1.3.tar.gz.

File metadata

  • Download URL: flask_july-0.1.3.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

Hashes for flask_july-0.1.3.tar.gz
Algorithm Hash digest
SHA256 fd24853f038dd32e5f92f4e781ca5f54837b1756234c8f38fc972c6050a1b93d
MD5 fb642b51db0e73ff7b8ecccd44447671
BLAKE2b-256 3e9a47a8903e76be3d88dc32d04dfe9866bb4e3835b805cb677286df3d1dcb9a

See more details on using hashes here.

File details

Details for the file flask_july-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: flask_july-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for flask_july-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a6880ddc8c1ac2d8278e6fa222c6c7ec98b2400e80612a523caf10ab21548688
MD5 91ef03a86849d4d5ea7fdb3146f1c032
BLAKE2b-256 8a3a444af6521d16895bc0b0e9b00b3e9d9fb8909e71628dac59edbd8f8e77a1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page