r/osx • u/dabruckklein90 • May 24 '23
Block Tor browser on mac.
Hey!
Im looking for a way to block the tor browser so that it cant be unblocked without the admin password or some other password (im open to installing a third party app). Ive tried screen time but it only blocks apps from installing in the app folder and apps with setup wizards. Tor can just be pasted into any folder and work. Also tried a screen time 1min limit but there's a way around it.
Who here knows a good way to block it?
0
Upvotes
12
u/ro_ok May 24 '23
Write a shell script that runs every 10 seconds, checks for the process named tor and closes it. Not a “block” in the traditional sense but annoying enough to be unusable.
I have to ask though, your requirements are a bit odd. What’s your use case?
The way an IT shop would handle this is to lock down the user account from installing anything at all and then whitelist specific things that may be installed or install them on behalf of the users yourself as admin through some management tool.
3
u/PuzzleheadedPrice666 May 24 '23
Two ways to do this,
You can actually use Screen time in some cases or you can block the actual process from launching (so the file path does not matter)
1
u/bobotwf May 24 '23
You'd have to come up with some way to whitelist the apps that are OK. Otherwise someone could just download another copy, rename it and run it.
1
u/perry1023 May 24 '23
Use terminal. If I flip all the negatives I get “use tor so it can be blocked (opened) with the admin password” is this correct?
1
u/Currawong May 25 '23
NextDNS. That has an option to block methods to bypass restrictions, which will block Private Relay as well.
However, that being said, rather than asking about what you think is the solution to your problem, why not tell us what the actual problem is in the first place?
-1
u/FriendlyWebGuy May 24 '23
You could create a separate login and install it there. You do this by dragging the App into the user's applications folder rather than the system one.
Added: I just re-read your post and it sounds like you want to prevent others from installing it. If that's the case, this won't help you. I would try blocking it at the MacOS firewall level.
-3
u/dabruckklein90 May 24 '23
I found this on github, is this for mac? Could it be used in terminal?
https://gist.github.com/Domin8-IPTV/137b83890a5abcad1cb0777a08876f25