cgi scripts hidden?

For all coding issues - MODers and programmers, HTML and more.

Moderators: Jeff250, fliptw

Post Reply
User avatar
Isaac
DBB Artist
DBB Artist
Posts: 7127
Joined: Mon Aug 01, 2005 8:47 am
Location: Ơ̸̦͇̲̬̭̱̰͎̞͈̣͎͚̳ͬ͋̃̀̇͊͂͋͐ͦ̽ͣ̂ͥ͊̅̀̚͠ B̶͖̯͉̜̰̲̓̔͋̈́ͅ È̯ Y̪̤̼͉̠̙͝

cgi scripts hidden?

Post by Isaac » Sat Dec 18, 2010 3:49 pm

It seems like a silly question, but I can't seem to directly open a CGI script on my server unless I log into an ftp account and open it there. It's in public_html/cgi-bin, which should be accessible to the public, but \"save as\" only seems to save the printed HTML strings.

Does this mean my CGI script's code hidden? So basically I could make little web applications that others can't pirate?

Thanks!
User avatar
Jeff250
DBB Master
DBB Master
Posts: 6387
Joined: Sun Sep 05, 1999 2:01 am
Location: ☃☃☃

Re: cgi scripts hidden?

Post by Jeff250 » Sun Dec 19, 2010 12:02 am

Isaac wrote:Does this mean my CGI script's code hidden? So basically I could make little web applications that others can't pirate?
Correct.

While we're on this topic though, I would recommend eventually using a framework like Django for larger Web applications. It's probably good to start with bare CGI though just to get the basics down (like questions like what you asked) and so that you will appreciate Django better when you finally do try it.
User avatar
Isaac
DBB Artist
DBB Artist
Posts: 7127
Joined: Mon Aug 01, 2005 8:47 am
Location: Ơ̸̦͇̲̬̭̱̰͎̞͈̣͎͚̳ͬ͋̃̀̇͊͂͋͐ͦ̽ͣ̂ͥ͊̅̀̚͠ B̶͖̯͉̜̰̲̓̔͋̈́ͅ È̯ Y̪̤̼͉̠̙͝

Post by Isaac » Sun Dec 19, 2010 5:52 am

Haha! That was my next question! Thanks!
Post Reply