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.
This is a basic Django application to manage Authorized Digital Sellers (ads.txt) file based on iabtech lab specification
Python 2.7, 3.5 or PyPy.
Django 1.9 or higher.
Use your favorite Python installer to install it from PyPI:
pip install django-ads-txt
Or get the source from the application site at:
https://github.com/flyingelephantlab/django-ads-txt/
Add 'ads_txt'
to your INSTALLED_APPS setting.
Run the migrate
management command
To activate ads.txt generation on your Django site, add this line to your URLconf:
url(r'^ads\.txt', include('ads_txt.urls')),
The instructions are encoded as a formatted plain text object, described here. A complete description of the syntax of this format:
<Domain #1>, <Account ID #2>, <Account type #3>, <Authority ID #4>
Field | Description |
---|---|
Domain (Required) | Domain name of the advertising system |
Account ID (Required) | The identifier associated with the seller or reseller account |
Account type (Required) | Type of Account/Relationship. It has two values DIRECT and RESELLER |
Authority ID (Optional) | An ID that uniquely identifies the advertising system within a certification authority |
example.com, 108933, DIRECT, 7857hf1d2fr6d8b34
opexample.com, [538220672 - CC], RESELLER, 6a69ec356744c6
opexample.com, [537120668 - CC], RESELLER, 6a69ec356744c6
ex.com, 7118, RESELLER
You can optionally cache the generation of the ads.txt. Add or change the ADSTXT_CACHE_TIMEOUT setting with a value in seconds in your Django settings file:
ADSTXT_CACHE_TIMEOUT = 60*60*24
As always your mileage may vary, so please don’t hesitate to send feature requests and bug reports:
FAQs
A simple Django app to manage ads.txt file from admin panel
We found that django-ads-txt 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.