[is_tor]

[is_tor]You are browsing without Tor[/is_tor]

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

Parameters

  • default – (accepts: text) – Content to display if the visitor is not 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 browsing through the **Tor network**.
If not, it returns the default content (if defined).

Examples

Display a message for Tor users:

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

Returns:

You are browsing without Tor
Was this page helpful?