[Novalug] question about security and locally run python web server
brinkley.joseph at gmail.com
Fri Jun 19 12:37:03 EDT 2009
honestly no if you are behind a firewall and you have a software firewall.
On Fri, Jun 19, 2009 at 10:59 AM, Bonnie Dalzell <bdalzell at qis.net> wrote:
> I want to test some cgi programs locally without putting them on the remote
> server at qwk.net.
> i found this really nifty python web server to run locally:
> The site describing it is at:
> and the entire server is done with this short python script:
> <begin script>
> # File: cgihttpserver-example-1.py
> import CGIHTTPServer
> import BaseHTTPServer
> class Handler(CGIHTTPServer.CGIHTTPRequestHandler):
> cgi_directories = ["/cgi"]
> PORT = 8000
> httpd = BaseHTTPServer.HTTPServer(("", PORT), Handler)
> print "serving at port", PORT
> <end script>
> The Code is by effbot: http://effbot.org/librarybook/cgihttpserver.htm
> I set it up following the instructions and it works nicely on my Ubuntu
> setup so I can practice CGI scripts.
> My question is this: When I run it locally is their anyway this would be
> opening my machine to malware?
> This was so much easier to set up for local testing than trying to get
> apache running locally.
> The other thing that is strange is that the web page says it only supports
> the "get" method but I am able to use "post" with it also.
> This opens up a much easier way to program a GUI front end to my perl
> programs - using the browser rather than perl-Tk.
> Bonnie Dalzell, MA
> mail:5100 Hydes Rd PO Box 60, Hydes,MD,USA 21082-0060|
> EMAIL:bdalzell at qis.net <EMAIL%3Abdalzell at qis.net>
> freelance anatomist, vertebrate paleontologist, writer, illustrator, dog
> breeder, computer nerd & iconoclast... Borzoi info at www.borzois.com.
> Editor Net.Pet Online Animal Magazine - http://www.netpetmagazine.com
> HOME http://www.qis.net/~borzoi/ BUSINESS http://www.batw.com
> Novalug mailing list
> Novalug at calypso.tux.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Novalug