Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.