Jump to content



Welcome to AstaHost - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!

Toggle shoutbox Shoutbox Open the Shoutbox in a popup

@  yordan : (19 June 2013 - 02:28 PM) Long Life To Asta New Era
@  agyat : (19 June 2013 - 01:58 PM) New Era Start At Asta Or Asta Start In New Era. :unsure:
@  yordan : (16 June 2013 - 05:41 PM) You're Welcome, Agyat!
@  agyat : (16 June 2013 - 07:38 AM) Thanks Yordan...
@  velma : (16 June 2013 - 12:06 AM) I Have Asked Opa To Check For A Backup.. He'll Let Me Know Soon :)
@  velma : (16 June 2013 - 12:05 AM) T_T It Seems That Someone Has Deleted That Topic Since I Found The Url Of The Topic But It Gives Me An Error
@  yordan : (15 June 2013 - 10:31 PM) @velma : It's A Tuto On How To Create A Login Program.
@  yordan : (15 June 2013 - 10:31 PM) Happy Birthday To Youuuuuu Agyat!
@  yordan : (15 June 2013 - 10:31 PM) Ba$
@  agyat : (15 June 2013 - 04:41 PM) :(
@  agyat : (15 June 2013 - 04:41 PM) Where The Hall I Were? 15Th Is Almost At End And No-One Wished Me "happy Birthday"!!!
@  velma : (14 June 2013 - 10:39 AM) Which Tutorial Is He Searching For?
@  velma : (14 June 2013 - 10:38 AM) Which Tutorial Is He Searching For?
@  yordan : (14 June 2013 - 07:47 AM) Ok, Have A Look Tomorrow.
@  yordan : (13 June 2013 - 03:19 PM) @velma, Can You Have A Look At Feelay's Problem? Seems That His Tutorial Is Not Searchable Today.
@  Feelay : (13 June 2013 - 08:11 AM) Oh, Haha
@  velma : (12 June 2013 - 05:39 PM) T_T Lately My Levels Of Procrastination..... **sigh**
@  velma : (12 June 2013 - 05:38 PM) I'll Do It Later
@  velma : (12 June 2013 - 05:38 PM) Procrastinators.. People Who Keep Saying "i'll Do This In A Bit"
@  Feelay : (12 June 2013 - 02:05 PM) Deal Punishments To What?

Replying to Adding Security Enhancements To Php Programs


Post Options

    • Can't make it out? Click here to generate a new image

  or Cancel


Topic Summary

Silver Bluewater

Posted 05 June 2007 - 04:37 PM

PHP is becoming the language for even general programming more as it has seen from PHP4 to PHP5. PHP originally started as CGI script language connected with the internet. Thus, PHP is closely related with the internet and security - whether the problem comes from security leak point of internet protocols or not - problems related to the internet. There are two major security issues when your PHP program(s) has something to do with the internet. There can be memory leak and security leak from the program of PHP not connected - or connected - to the internet by PHP setting and coding. When that's the case checking of the PHP program comes to the first hand checking of PHP setting comes to the second hand and PHP source code for he third hand. Two major security issues of PHP program using the internet and way to prevent will be described below. Please note that the solutions provided here is just like pure algorithm not involving the actual coding of PHP although there might be some PHP coding tips.

First one is the catcher, you really cannot sure that the accessed one is computer or not. The accessed one might be the program trying to collect informations such as e-mail addresses. Moreover, these days of huge portals such as google and yahoo are making the catcher in their user sign-up page. Catcher is usually a set of characters provided in a digital image format and so the accessed computer program cannot functions as it is made for. Accessed computer program cannot recognizes the characters in a digital image format and so this ensures the accessed one to the page is the human, and not a computer program. To prevent a set of characters provided in a digital image format to be recognized and used by the accessed computer program, catcher usually gives a lot of different patterns - so different shape in human's vision - and even limit certain actions of putting the characters to provided field from the catcher. Catcher is recognized as almost impossible to be decoded by the computer these days although catcher might not be able to check the accessed one is computer or not later.

Second one is the session, it allows the program(s) to check the accessed one is consistently keeping up the connection with the server it is connecting. The best way to prevent someone to sniff the accessed one's packet and connect as if it were the accessed one is to use SSL(of high-bit and so it can not be decrypted while the accessed one uses for a considerable amount of time) and session at same time to give more security enhancements. SSL of high-bit does not promise that packet cannot be decrypted although the probability is very rare to have security leak. SSL of low-bit has more probability of having the security leak than SSL of low-bit. Although it may be possible that SSL may have the security leak, that occurrence 's probability is so rare and roughly estimated to impossible unless that accessed one's computer did make special occasions such as giving of the key to the attacker whether the accessed one intended or not. For practical use, some companies - actually most of renowned companies - provide SSL partially in their pages when the need is significant and use sessions where it is needed unless there are the need for covering up the whole pages with SSL and session since SSL and session require more server resource(s).


--
Have a nice day!

My blog : silverbluewater.blogspot.com

Review the complete topic (launches new window)