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-spaminspector
Advanced tools
django-spaminspector is a generic spam inspector of Django via Akismet
Django's genetic spam inspector library via Akismet
sudo pip install django-spaminspector
or
sudo pip install git+git://github.com/lambdalisue/django-spaminspector.git#egg=django-spaminspector
First, you need to specified SPAMINSPECTOR_AKISMET_KEY
on settings.py
Add spaminspector
to INSTALLED_APPS
on settings.py
Add spaminspector.middleware.SpamInspectionMiddleware
to MIDDLEWARE_CLASSES
on settings.py
Add view which you want to inspect to SPAMINSPECTOR_VIEWS
The code below is a profile for django's comment framework::
SPAMINSPECTOR_VIEWS = (
('django.contrib.comments.views.comments.post_comment', {
'comment_type': 'comment',
'comment_author': lambda request: request.POST.get('name', ""),
'comment_author_email': lambda request: request.POST.get('email', ""),
'comment_author_url': lambda request: request.POST.get('url', ""),
'comment_contents': lambda request: request.POST.get('comment', ""),
}),
)
SPAMINSPECTOR_VIEWS
the list of view and inspection_profile. default settings is for django comment framework.
SPAMINSPECTOR_AKISMET_KEY
the api key of Akismet of your url.
SPAMINSPECTOR_SPAM_TEMPLATE
an template uri. this template is used to show when comment is detected as spam. (optional)
FAQs
django-spaminspector is a generic spam inspector of Django via Akismet
We found that django-spaminspector 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.