Changeset 2487784
- Timestamp:
- 03/05/2021 11:25:16 AM (5 years ago)
- Location:
- tor-router
- Files:
-
- 4 added
- 3 edited
-
tags/1.4.1 (added)
-
tags/1.4.1/readme.txt (added)
-
tags/1.4.1/tor-router.php (added)
-
tags/1.4.1/tor-router.sh (added)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/tor-router.php (modified) (3 diffs)
-
trunk/tor-router.sh (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tor-router/trunk/readme.txt
r2346596 r2487784 4 4 Tags: tor, proxy, socks, connection, proxies, firewall, block 5 5 Requires at least: 2.8 6 Tested up to: 5. 4.27 Stable tag: 1.4. 06 Tested up to: 5.7 7 Stable tag: 1.4.1 8 8 License: GNU General Public License v3.0 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 29 29 3. Open `Settings` -> `Tor Router` to setup the plugin. 30 30 4. To route through Tor you need to have it installed on your server (e.g. `apt-get install tor`), use SOCKS Proxy Mode in the Tor Router settings, and set Proxy Host to `localhost` and Proxy Port to `9050` (default) 31 5. To enable the Tor KeepAlive feature and the Restart Tor button, set up a cron job to run the script /wp-content/plugins/tor-router/tor-router.sh every minute, e.g: (adjust the path)32 sudo crontab -e33 * * * * * bash /var/www/html/wp-content/plugins/tor-router/tor-router.sh31 5. To enable the Tor KeepAlive feature and the Restart Tor button, set up a cron job to run the script `tor-router.sh` every minute (as root), e.g: 32 sudo nano /etc/crontab 33 * * * * * root bash /var/www/html/wp-content/plugins/tor-router/tor-router.sh 34 34 35 35 == Screenshots == … … 38 38 39 39 == Changelog == 40 41 = 1.4.1 - 2021-03-05 = 42 * Compatibility to WordPress 5.7 40 43 41 44 = 1.4.0 - 2020-07-25 = -
tor-router/trunk/tor-router.php
r2346596 r2487784 4 4 Plugin URI: https://wordpress.org/plugins/tor-router/ 5 5 Description: Routes outgoing traffic through Tor or any HTTP / SOCKS Proxy. 6 Version: 1.4. 06 Version: 1.4.1 7 7 Author: OnionBazaar 8 8 Author URI: http://onionbazaar.org … … 12 12 */ 13 13 14 define( 'TORROUTER_VERSION', '1.4. 0' );14 define( 'TORROUTER_VERSION', '1.4.1' ); 15 15 16 16 function torrouter_upgrade130to140() { … … 27 27 } 28 28 else { 29 add_option( 'torrouter_proxymode', ' ' ); }29 add_option( 'torrouter_proxymode', '0' ); } 30 30 31 31 add_option( 'torrouter_host', get_option( 'obztorrouter_host' ) ); -
tor-router/trunk/tor-router.sh
r2346596 r2487784 9 9 if [ ! -d "$WPDIR/wp-content" ]; then 10 10 echo "# ERROR: Wordpress directory not found. Edit this script if you are using a non-default directory structure." 11 return11 exit 12 12 fi 13 13 … … 43 43 if [ "$WPSITEURL" == "" ]; then 44 44 echo "# ERROR: Could not connect / retrieve data from the WordPress database. Exiting." 45 return45 exit 46 46 else 47 47 TRTORKEEPALIVE=$(mysql -h$SQLHOST -D$SQLDB -u$SQLUSER -p$SQLPASS -se "SELECT option_value FROM wp_options WHERE option_name = 'torrouter_torkeepalive'") … … 77 77 else 78 78 echo "# ERROR: Could not retrieve SQL credentials from wp-config.php. Exiting." 79 return79 exit 80 80 fi 81 81 fi
Note: See TracChangeset
for help on using the changeset viewer.