Metadata-Version: 2.3
Name: ddos_blocker
Version: 0.0.8
Summary: A small library for repelling DDoS attacks
Author-email: Alexander Chaika <manti.by@gmail.com>, Ulyana Akinfina <ulyana.akinfina22@gmail.com>
License-File: LICENSE
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.10.0
Requires-Dist: django<=5.1.1,>=3.2
Requires-Dist: redis<=5.0,>=4.0
Description-Content-Type: text/markdown

Documentation under development. 

At this point you can already use the library. 
In the config file settings.py add:

REDIS_HOST = 'host'
REDIS_PORT = 'port'
REDIS_DB = '0 - 16'
REDIS_TIMEOUT = 'if the user makes more than REDIS_MAX_REQUESTS requests during this time, he will be blocked' 
REDIS_MAX_REQUESTS = 'maximum number of requests'

Default settings:

REDIS_HOST = "localhost"
REDIS_PORT = 6379
REDIS_DB = 0
REDIS_TIMEOUT = 5 * 60
REDIS_MAX_REQUESTS = 100