|
Enable HTTPS Filtering: Chain ProxHTTPSProxyMII to Privoxy (OS X Tutorial)
|
|
Jan. 26, 2017, 04:06 PM
(This post was last modified: Dec. 08, 2017 10:25 PM by Faxopita.)
Post: #11
|
|||
|
|||
|
RE: Enable HTTPS Filtering: Chain ProxHTTPSProxyMII to Privoxy (OS X Tutorial)
Allow Privoxy to Block All Requests if VPN Turned Off!
Some VPN apps offer the option to block Internet access if, for example, they happen to be disabled accidentally. I don't have this option, so I decided to create a tiny script to do that job (to some extent) with the help of Privoxy. The script automatically blocks all HTTP/HTTPS requests if your VPN is down. To do so, it simply uncomments these lines if TUN device is not returned in ifconfig output: Code: # { +block{VPN is not running. Turn it on first!} }Be warned that the script will not deal with layers other than HTTP/HTTPS. So, you might still be able to use, for example, SMTP or FTP if your VPN is down. Any exception rule under `{ -block }` put after the above enforced block action will still allow for Internet access even though your VPN is down; useful to let you at least connect to your VPN, by the way… If you are interested, then this post is for you, but first: retrieve the attached archive to this post and back up immediately your `user.action` file! Design choice: the script does its own little job only if the hidden file `.AllVPN` is present in your Home directory. It's a kind of a switch. It's a choice I made, but you can certainly modify the script so it doesn't take account of this switch! So, for now, create it with your favourite Terminal: Code: cd `echo $HOME`Amend your own `user.action` file. Add this section at the end of your `user.action` file: Code: # { +block{VPN is not running. Turn it on first!} }Also, be warned the script requires you to have write permissions on `user.action` file; in Terminal `cd` to your Privoxy directory, then… Code: sudo chmod 664 user.actionAmend script AllVPN.
Setting up the dæmon.
-–— Minuscule donations are always appreciated… Code: BTC --> 34WKogWorDoReJ2MSxw8rTsrGD87VMAPJY |
|||
The following 1 user says Thank You to Faxopita for this post:GORTOP |
|
« Next Oldest | Next Newest »
|
| Messages In This Thread |
|
Enable HTTPS Filtering: Chain ProxHTTPSProxyMII to Privoxy (OS X Tutorial) - Faxopita - Jul. 26, 2015, 11:09 AM
RE: Privoxy + ProxHTTPSProxyMII on OS X - cattleyavns - Jul. 26, 2015, 01:36 PM
RE: Privoxy + ProxHTTPSProxyMII on OS X - diem - Oct. 12, 2015, 03:07 PM
RE: Privoxy + ProxHTTPSProxyMII on OS X - Faxopita - Oct. 12, 2015, 10:22 PM
RE: Privoxy + ProxHTTPSProxyMII on OS X - JJoe - Oct. 13, 2015, 12:09 AM
RE: Privoxy + ProxHTTPSProxyMII on OS X - Faxopita - Oct. 13, 2015, 09:40 AM
RE: Privoxy + ProxHTTPSProxyMII on OS X - Faxopita - Oct. 18, 2015, 09:50 PM
RE: Enable HTTPS Filtering: Chain ProxHTTPSProxyMII to Privoxy (OS X Tutorial) - Faxopita - Jan. 29, 2016, 03:45 PM
RE: Enable HTTPS Filtering: Chain ProxHTTPSProxyMII to Privoxy (OS X Tutorial) - Faxopita - Apr. 09, 2016, 10:00 AM
RE: Enable HTTPS Filtering: Chain ProxHTTPSProxyMII to Privoxy (OS X Tutorial) - Faxopita - Jan. 26, 2017 04:06 PM
|

Search
Member List
Calendar
Help





![[-]](images/ONi/collapse.gif)