Another question about Security

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • alvarojaviervera@gmail.com

    #1

    Another question about Security

    Ok, let's go again.
    I was surfing in Internet and I was trying to find some good code
    about security.
    There is a lot of them, using cookies and sessions.
    Anothers hiding variables an others stuffs.
    Question is: What is best way that you use (technique) to get safe
    (may be your site or system)?
    Thanks for your time.
    Bye.

    Alvaro J. Vera Alvarado
    VNC Sfe

  • Mike P2

    #2
    Re: Another question about Security

    On May 5, 5:37 pm, "alvarojavierv. ..@gmail.com"
    <alvarojavierv. ..@gmail.comwro te:
    What is best way that you use (technique) to get safe
    (may be your site or system)?
    That depends almost completely on what your site does and how it is
    done. For general things, you can disable PHP's register_global s
    option (you'll find that in php.ini, or you can write a short snippet
    that unregisters the globals like phpBB forums do, or .htaccess can
    sometimes help with PHP switches) and mysql_real_esca pe_string()
    specific input before inserting into your database to prevent SQL
    injection (magic_quotes may be enabled already, it's preferable to
    disable that and escape stuff yourself so you can be sure it's working
    all of the time).

    You can also give mod_security a try, some hosts implement it
    (DreamHost does). It covers a some things you might miss.


    -Mike PII

    Comment

    Working...