FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.

FutureQuest, Inc.
Go Back   FutureQuest Community > General Site Owner Support (All may read/respond) > General Coding/Development
User Name
Password  Lost PW

Reply
 
Thread Tools Search this Thread Display Modes
Old 03-10-2002, 02:37 AM   Postid: 63350
songdog
Site Owner
 
songdog's Avatar

Forum Notability:
83 pts: Helpful Contributor
[Post Feedback]
 
Join Date: Feb 2002
Location: Denver, Colorado
Posts: 865
Source code of scripts in my cgi-bin directory: Can it be seen?

I have a sub-directory called SmartScripts in my cgi-bin directory.
I plan to have some Perl scripts in cgi-bin/SmartScripts for processing forms on my web site. Will a clever Internet user be able to view the source code of these scripts?

Of course, security best practices dictate that I don't have passwords or any other highly sensitive data in the scripts. I just want to know if someone can see what's in the scripts.

If so, is there a way I can modify permissions to prevent this, while still allowing the scripts to be executed from my HTML forms?

Thanks for any light you can shed, Scott
songdog is offline   Reply With Quote
Old 03-10-2002, 03:13 AM   Postid: 63352
 Arthur
Developer
 
Arthur's Avatar
 
Join Date: Nov 2000
Location: The Netherlands
Posts: 2,212
The short answer: no. You will not be able to view the source.

Files in your cgi-bin are considered special by Apache. It'll always try to execute the file and will only show the output of the script/program. Just like you're not able to view the source of PHP scripts, for example.
Arthur is online now   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 04:29 PM.


Running on vBulletin®
Copyright © 2000 - 2013, Jelsoft Enterprises Ltd.
Hosted & Administrated by FutureQuest, Inc.
Images & content copyright © 1998-2013 FutureQuest, Inc.
FutureQuest, Inc.