Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a python script that accesses the web and each time it launches I'm prompted by my Little Snitch to allow the connection by Python.

I don't want to allow globally allow Python to connect, since theoretically some rogue app could use the system's python for phoning home etc.

Is there some way to have just this specific script (by, say, system path) to automatically be allowed web access? Or perhaps is there a way to programmatically dismiss the Little Snitch dialog box and allow the connection from inside the script?

share|improve this question
I think you might be able to install (or copy) a second version of python to another directory (maybe to /usr/local/bin/) and rename it, then tell your script to use /usr/local/bin/your_python instead of the usual /usr/bin/python. Maybe Little Snitch will be able to create a rule for this one only. – slhck May 24 '11 at 8:56
Maybe what @slhck suggested works with creating a symbolic link to the python binary and referencing that one in the shebang-line of your script? – Daniel Beck May 24 '11 at 9:21
great ideas you guys – GJ. Apr 9 '12 at 8:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.