[is_not_tor]

[is_not_tor]You are using the Tor network[/is_not_tor]

This shortcode allows you to display content specifically for visitors **not using the Tor network**, and optionally show alternative content to Tor users.

Parameters

  • default – (accepts: text) – Content to display if the visitor is using the Tor network (optional)
  • cache – (no value) – Enables AJAX-based caching. This parameter is automatically applied if cache setting is enabled

Return

Displays the wrapped content only if the visitor is **not browsing through the Tor network**.
If they are using Tor, it returns the default content (if defined).

Examples

Display a message for non-Tor users:

[is_not_tor default="You are using the Tor network"]You are browsing without Tor[/is_not_tor]

Returns:

You are browsing without Tor
Was this page helpful?