Last active
April 15, 2016 18:01
-
-
Save toji/66128d27662950e335de916bccbdb1ef to your computer and use it in GitHub Desktop.
Local python server that only allows connections from localhost
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http() { | |
python -c "import BaseHTTPServer as bhs, SimpleHTTPServer as shs; bhs.HTTPServer(('127.0.0.1', $1), shs.SimpleHTTPRequestHandler).serve_forever()" & | |
} | |
(Called like: "http 8000") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment