By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,521 Members | 1,420 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,521 IT Pros & Developers. It's quick & easy.

Another question about Security

P: n/a
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

May 5 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On May 5, 5:37 pm, "alvarojavierv...@gmail.com"
<alvarojavierv...@gmail.comwrote:
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_globals
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_escape_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.
http://www.modsecurity.org/projects/...che/index.html

-Mike PII

May 5 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.