Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

One critical consideration is that there is no way for a hacker to see your .pm, your sql files and any other files that they have no right to see. .pm and SQL files would be especially useful to a hacker as they would pretty much hand him the keys. Clearly you are keeping them out of the document root directory which is good. Apache has all sorts of ways mapping odd directories into user visible web space. Are you confident that you have none of these mapped so that your .pm and SQL files can be exposed? Also can you use the UNIX file permissions to add further protection. This depends a lot on to what extent this is a shared server. If it is a shared server can you protect yourself further by using suExec?

Edit I have reread your post again. You are planning to publish your .pm files to CPAN. I assume by this you mean the reusable components. With regard to those files I don't really see the issue. Files generic enough to be published to CPAN can go whereever perl modules normally go.

Edit 2 The more I think about the more confused I am about this. What are your priorities?

  1. Security? Something you definitely need to think about.
  2. Maintainability. I think this was your question. Actually you seemed to be referring to the specifics of your situation which you should probably not give us to much detail on.
  3. Publishing reusuable components to open source. If you have some I don't see what the question is. If you don't, don't mention CPAN.
  4. Regression testing. Can I recommend Test::Regression. Just a module I stumbled across somewhere. ;-)

In reply to Re: put SQL::Library file where? by SilasTheMonk
in thread put SQL::Library file where? by mandog

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others surveying the Monastery: (6)
    As of 2021-03-04 13:02 GMT
    Find Nodes?
      Voting Booth?
      My favorite kind of desktop background is:

      Results (104 votes). Check out past polls.