Skip to main content

A Sopel plugin providing alerts about malicious URLs.

Project description

sopel-safety

A Sopel plugin providing alerts about malicious URLs.

This is a continuation of Sopel's built-in safety plugin.

Installing

Releases are hosted on PyPI, so after installing Sopel, all you need is pip:

$ pip install sopel-safety

Configuring

The easiest way to configure sopel-safety is via Sopel's configuration wizard—simply run sopel-plugins configure safety and enter the values for which it prompts you.

Migrating from sopel.builtins.safety

Sopel's old built-in safety plugin had a setting called enabled_by_default, which was deprecated in favor of a default_mode setting. This plugin doesn't include any logic to handle the enabled_by_default value, and Sopel's logs will warn about that setting if present in the config file.

If you used to use the built-in safety plugin, you should delete enabled_by_default from your config file and set default_mode to one of the choices described below.

You can also safely delete the malwaredomains.txt file if it exists in your Sopel bot's homedir. Newer versions of safety (both the built-in plugin and this continuation package) use unsafedomains.txt instead.

Available options

  • default_mode — Which operating mode to use in channels without a mode set.
    Available options are 'off', 'local', 'local strict', 'on', and 'strict'.
  • known_good — A list of "known good" domains or regexes to consider trusted.
  • vt_api_key — Optional VirusTotal API key.
    Providing this can improve malicious URL detection. Without it, this plugin will check against the domain blocklist only.
  • domain_blocklist_url — Optional URL of an alternate domain blocklist.
    This plugin uses StevenBlack's unified hosts file by default, which aggregates known domains across adware and malware categories. This option can be used to specify a different variant from the same repository, or another compatible file maintained elsewhere.

Changelog

0.1.0

First release of sopel-safety.

Standalone package, based on Sopel's built-in safety plugin.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sopel_safety-0.1.0.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sopel_safety-0.1.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file sopel_safety-0.1.0.tar.gz.

File metadata

  • Download URL: sopel_safety-0.1.0.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sopel_safety-0.1.0.tar.gz
Algorithm Hash digest
SHA256 048566171ab6ba99edf9d0c3b1f4c89f29e7a280a6efdd567974944715a40483
MD5 5c9e40478381f7b97afc618af149a42d
BLAKE2b-256 82245eb90e49ad8a9f1fc868c717b3ef7366e0631837bf9520559e03dee68eb2

See more details on using hashes here.

Provenance

The following attestation bundles were made for sopel_safety-0.1.0.tar.gz:

Publisher: pypi.yml on sopel-irc/sopel-safety

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sopel_safety-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: sopel_safety-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sopel_safety-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be3ac3418f3ecd37a4ff89dd68cd9f785df79a1ba34694c9e625bb7361232186
MD5 b6e70f355a2d8bfa75ddae36f9668f90
BLAKE2b-256 44da4b8dd48a7877820f99efd3fde2ca8735d9ba72492bdd5d7e70d3f37ff377

See more details on using hashes here.

Provenance

The following attestation bundles were made for sopel_safety-0.1.0-py3-none-any.whl:

Publisher: pypi.yml on sopel-irc/sopel-safety

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page