| 开发者 |
ivijanstefan
creativform |
|---|---|
| 更新时间 | 2025年10月27日 21:38 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.8 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
onionify folder to the /wp-content/plugins/ directory..onion host (host only, e.g. abcd1234xyz.onion) and optional hardening settings.define('TOS_VERIFY_TOR_EXIT', true); to wp-config.php, oradd_filter('onion_verify_exit_list', '__return_true'); in a mu-plugin or theme functions file.
Note: verification is opt-in and cached for 24 hours. If your environment disables external HTTP calls, keep verification disabled.First, you need to configure a Tor hidden service on your server. This is done outside of WordPress, by editing the Tor configuration file (usually /etc/tor/torrc) and adding lines such as:
HiddenServiceDir /var/lib/tor/hidden_service/ HiddenServicePort 80 127.0.0.1:80
After restarting the Tor service, Tor will generate a hostname file (for example /var/lib/tor/hidden_service/hostname) that contains your new .onion address.
Once you have the .onion address, open your WordPress admin panel and go to:
.onion host (for example abcd1234xyz.onion) in the provided field. Onionify will automatically handle URL rewriting and privacy adjustments when visitors access your site through the onion address..onion address.
No. The plugin does not modify hosting, DNS, or server-level routing. It simply adjusts WordPress behavior when incoming requests originate from an onion address. If you want a site that is accessible exclusively via onion services with no clearnet presence, that requires additional server and network configuration beyond this plugin.
The plugin inspects common headers (for example, CF-Connecting-IP and X-Forwarded-For) to help detect onion-origin requests behind CDNs. It also provides the onion_is_onion_request filter for integrations with other plugins. If your CDN modifies or removes headers, adjust your CDN or proxy settings so that the real client IP headers are passed through to WordPress.
If the Custom CSP is invalid or overly restrictive, some parts of your site (including the admin area) may stop functioning properly. The plugin will send exactly the CSP string you provide. Use this feature only if you understand Content Security Policy rules, and test changes on a staging or development site first.
home or siteurl values?No. The plugin returns rewritten URLs dynamically at runtime. Database values remain unchanged.
The feature is disabled by default. No action is required to keep it off. To enable it, add define('ONS_VERIFY_EXIT_ADDRESSES', true); to your wp-config.php file or use the filter add_filter('onion_verify_exit_list', '__return_true');.