Changeset 2284151
- Timestamp:
- 04/15/2020 01:46:57 PM (6 years ago)
- Location:
- tor-router
- Files:
-
- 3 added
- 3 edited
-
assets/screenshot-1.png (modified) (previous)
-
tags/1.1.0 (added)
-
tags/1.1.0/readme.txt (added)
-
tags/1.1.0/tor-router.php (added)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/tor-router.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tor-router/trunk/readme.txt
r2267773 r2284151 2 2 Plugin Name: Tor Router 3 3 Plugin URI: https://wordpress.org/plugins/tor-router/ 4 Version: 1. 04 Version: 1.1 5 5 Author: OnionBazaar 6 6 Author URI: http://onionbazaar.org 7 7 Contributors: OnionBazaar 8 8 Requires at least: 2.8 9 Tested up to: 5. 3.29 Tested up to: 5.4 10 10 Stable tag: trunk 11 11 License: GNU General Public License v3.0 12 12 License URI: http://www.gnu.org/licenses/gpl-3.0.html 13 13 14 Routes outgoing traffic through Tor or any HTTP Proxy.14 Routes outgoing traffic through Tor or any HTTP / SOCKS Proxy. 15 15 16 16 17 17 == Description == 18 18 19 Tor Router directs all connections through a HTTP Proxy. Use this plugin in case your network requires a Proxy for outgoing traffic, or if you want to anonymize it via Tor.19 Tor Router directs all connections through a HTTP/SOCKS Proxy. Use this plugin in case your network requires a Proxy for outgoing traffic, or if you want to anonymize it via Tor. 20 20 21 21 To check if the routing works properly, there is a button "Check IP" in the Tor Router settings. This connects to the 3rd party website https://icanhazip.com (terms of service: https://major.io/icanhazip-com-faq) to display your external IP. … … 27 27 2. Activate Tor Router through the 'Plugins' menu in WordPress. 28 28 3. Open `Settings` -> `Tor Router` to setup the plugin. 29 4. To route through Tor , add "HTTPTunnelPort 9080" to your torrc - file29 4. To route through Tor you need to have it installed on your server (apt-get install tor / yum install tor) 30 30 31 31 … … 33 33 34 34 1. View of Tor Router Settings 35 36 37 == Changelog == 38 39 #### 1.1 40 41 Added SOCKS functionality 42 43 #### 1.0 44 45 The management and development of the plugin is done by [OnionBazaar](https://onionbazaar.org) -
tor-router/trunk/tor-router.php
r2267773 r2284151 3 3 Plugin Name: Tor Router 4 4 Plugin URI: https://wordpress.org/plugins/tor-router/ 5 Description: Routes outgoing traffic through Tor or any HTTP Proxy.6 Version: 1. 05 Description: Routes outgoing traffic through Tor or any HTTP / SOCKS Proxy. 6 Version: 1.1 7 7 Author: OnionBazaar 8 8 Author URI: http://onionbazaar.org … … 23 23 function obztorrouter_register_settings() { 24 24 add_option( 'obztorrouter_enabled', '1'); 25 add_option( 'obztorrouter_socks', '1'); 25 26 add_option( 'obztorrouter_host', 'localhost'); 26 add_option( 'obztorrouter_port', '90 80');27 add_option( 'obztorrouter_port', '9050'); 27 28 register_setting( 'obztorrouter_options_group', 'obztorrouter_enabled' ); 29 register_setting( 'obztorrouter_options_group', 'obztorrouter_socks' ); 28 30 register_setting( 'obztorrouter_options_group', 'obztorrouter_host' ); 29 31 register_setting( 'obztorrouter_options_group', 'obztorrouter_port' ); … … 73 75 <td width="400" ><input type="checkbox" name="obztorrouter_enabled" id="obztorrouter_enabled" value="1" '; 74 76 checked('1', get_option('obztorrouter_enabled')); 75 echo '/> <label for="obztorrouter_enabled">Route traffic through the following HTTP Proxy</label> 77 echo '/> <label for="obztorrouter_enabled">Route traffic through the following Proxy</label> 78 </td> 79 </tr> 80 <tr><td colspan="2"><br></td></tr> 81 <tr> 82 <tr> 83 <td width="150" valign="top">SOCKS Mode</td> 84 <td width="400" ><input type="checkbox" name="obztorrouter_socks" id="obztorrouter_socks" value="1" '; 85 checked('1', get_option('obztorrouter_socks')); 86 echo '/> <label for="obztorrouter_socks">Use SOCKS instead of HTTP Proxy</label> 76 87 </td> 77 88 </tr> … … 89 100 </tr> 90 101 <tr><td colspan="2"><br></td></tr> 91 <tr><td colspan="2"><p>To activate the HTTP Proxy Server feature in Tor, you need to add "HTTPTunnelPort 9080" to your Tor configuration file (torrc)</p></td></tr>102 <tr><td colspan="2"><p>To route through Tor, you need to have it installed on your server (apt-get install tor / yum install tor), activate <i>SOCKS Mode</i> and set the host to <i>localhost</i> and the port to <i>9050</i></p></td></tr> 92 103 </table>'; 93 104 submit_button(); … … 109 120 if (get_option('obztorrouter_enabled')=='1') { 110 121 if ( ( !defined( 'WP_PROXY_HOST' ) ) AND ( !defined( 'WP_PROXY_PORT' ) ) ) { 111 define('WP_PROXY_HOST', get_option('obztorrouter_host')); 122 if (get_option('obztorrouter_socks')=='1') { 123 $obztorrouter_host = 'socks://'.get_option('obztorrouter_host'); 124 } 125 else { 126 $obztorrouter_host = get_option('obztorrouter_host'); 127 } 128 define('WP_PROXY_HOST', $obztorrouter_host); 112 129 define('WP_PROXY_PORT', get_option('obztorrouter_port')); 113 130 }
Note: See TracChangeset
for help on using the changeset viewer.