Skip to content
Back to top
View this page
Edit this page

# Tor check

A plugin to check if the ip address of the request is a Tor exit-node if the user searches for `tor-check`. It fetches the tor exit node list from `url_exit_list` and parses all the IPs into a list, then checks if the user’s IP address is in it.

searx.plugins.tor_check.url_exit_list = 'https://check.torproject.org/exit-addresses'

  URL to load Tor exit list from.

class searx.plugins.tor_check.SXNGPlugin(plg_cfg: PluginCfg)

  Rewrite hostnames, remove results or prioritize them.

  id: str = 'tor_check'

    The ID (suffix) in the HTML form.

  keywords: list[str] = ['tor-check', 'tor_check', 'torcheck', 'tor', 'tor check']

    Keywords in the search query that activate the plugin. The keyword is the first word in a search query. If a plugin should be executed regardless of the search query, the list of keywords should be empty (which is also the default in the base class for Plugins).

  post_search(request: SXNG_Request, search: SearchWithPlugins) → EngineResults

    Runs AFTER the search request. Can return a list of `Result` objects to be added to the final result list.