Current location: Hot Scripts Forums » Programming Languages » PHP » Hacking Security


Hacking Security

Reply
  #1 (permalink)  
Old 05-20-06, 08:07 AM
naissa naissa is offline
Wannabe Coder
 
Join Date: Jul 2004
Posts: 101
Thanks: 0
Thanked 0 Times in 0 Posts
Hacking Security

Can you help me protect my scripts from hacking?

What are the codes to protect it?
Reply With Quote
  #2 (permalink)  
Old 05-20-06, 09:28 AM
koncept
Guest
 
Posts: n/a
start with that
http://www.programmingtalk.com/showthread.php?t=28637

there is no one magical code to protect anything. it depends upon the script, and server it is running on
Reply With Quote
  #3 (permalink)  
Old 05-20-06, 10:30 AM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 3,027
Thanks: 14
Thanked 35 Times in 33 Posts
Quote:
Originally Posted by naissa
Can you help me protect my scripts from hacking?

What are the codes to protect it?
As Koncept said, there is no one single method. In short, however, the best thing you can do is to rigorously and consistently validate your incoming data to ensure it's "clean".

-If the incoming data is supposed to be a number, allow only numbers to pass through.
-Limit the length of incoming vars and validate them for 'legal' lengths.
-Turning on magic_quotes can help screen out a lot of the simpler attacks.
-add code to catch 'boundary' conditions .
-add code for 'sanity tests' in your app. Abort the current process if the sanity test fails.

These are just a few basic ideas. The overriding Rule Of Thumb is "Don't trust the network."
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FYI: Shout goes out over PHP security bugs nugensoftware PHP 0 11-01-05 11:43 PM
Free Server Security Audit by Touch Support TSGradyR General Advertisements 0 03-30-05 11:35 PM
Free Security Audit TSGradyR General Advertisements 0 03-15-05 07:29 PM
security concerns new purchased script Ron_Long_Beach PHP 3 09-23-04 01:45 AM


All times are GMT -5. The time now is 07:13 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.