hide cgi c code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TYF
    New Member
    • Nov 2007
    • 11

    hide cgi c code

    hi,
    i do have some cgi application with hardcoded data which is visible in plain text to anyone. is there any way to hide those code? preventing users from accessing this file isn't an option.
  • sicarie
    Recognized Expert Specialist
    • Nov 2006
    • 4677

    #2
    What are you trying to hide? The code on the system, or the output/display of that code?

    (I'm guessing it's on the system, so that sounds like more of a device-specific security/permissions issue)

    Comment

    • TYF
      New Member
      • Nov 2007
      • 11

      #3
      yes, you guessed right. its the code on the system which i want to hide. especially the hardcoded parts.

      isnt there any code based solution?

      Comment

      • sicarie
        Recognized Expert Specialist
        • Nov 2006
        • 4677

        #4
        Why not just lock down that directory for everyone but you/another admin?

        What OS are you on?

        Comment

        • weaknessforcats
          Recognized Expert Expert
          • Mar 2007
          • 9214

          #5
          You should be using source control software.

          You keep the working copies in folders known only to you.

          Then when you check in, you can flash copy the code to a user directory where they can fiddle with the code all they want since it's not the real code.

          No one should be accessing the working set unless they are security cleared.

          Comment

          • TYF
            New Member
            • Nov 2007
            • 11

            #6
            ok, thanks sicarie and weaknessforcats . i will try this out and let you know how it goes.

            Comment

            Working...