
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
django-access-timer-middleware
Advanced tools
Access timer middleware is a middleware which allow to control access to some paths, like /api/, /admin/ and what you want!
Access timer middleware is a middleware which allow to control access to some paths, like /api/, /admin/ and what you want!
To install the package, run:
pip install django-access-timer-middleware
In settings.py write next stuff:
INSTALLED_APPS:
INSTALLED_APPS = [
...,
'access_timer_middleware',
...,
]
MIDDLEWARE:
MIDDLEWARE = [
...,
'access_timer_middleware.middleware.AccessTimerMiddleware',
]
And then:
python manage.py makemigrations
python manage.py migrate
The default access time to endpoints is 1 hour.
After expiring access time you won't get some endpoint, then you will receive error 403.
That value you can change in admin panel.
Available the next values:
In settings.py you should to set a one of two constants:
RESTRICTED_PATHS = ['/api/']
The paths are participating in checking access
or...
EXCLUDED_PATHS = ['/api/stuff/login/', '/api/stuff/signup/', '/admin/']
...paths, which are excluded from it, but rest of the endpoints there are in checking.
Using those two constants at the same time will throw an exception.
Current version: 1.4
This package won't have updates, except of bug updates.
pavelbeard
FAQs
Access timer middleware is a middleware which allow to control access to some paths, like /api/, /admin/ and what you want!
We found that django-access-timer-middleware demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.