Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

PHP Security Pt 1

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
5,872
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 7, 2011

In this PHP Security Tutorial I show you how to secure your database and system from computer hackers. Specifically I cover how to hide your database access files and how to block code injection through the use of regular expressions. The code is here: http://bit.ly/dTHvSb

In the future I'll cover how the following work and how to block them:




* SQL Injection
* Cross Site Scripting (XSS)
* Malicious Code Encoding
* Session Hijacking
* Session Fixation
* Malicious System Calls
* Buffer Overflows

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (derekbanas)

  • Is there any difference between doing like you do:

    "require_once("../connect.php"­)" and "include("../connect.php")"

    and if so, what is the difference?

  • @MIDIS0NG require_once checks if the file has already been included, and if so, won't include it again

  • This is very helpful. Thanks. I'm going to have to go over it a few hundred times as a noob, but I like your pacing. A lot of online tuts are painfully slow and repetitive.

  • @yesanded Thank you. That's why I make all of my videos quick. The slow tutorials always drove me mad as well :)

  • @derekbanas Derek at 4:33 you said something was unsafe. What did you mean? I don't recall you saying anything about it in later videos. Were you referring to checking if the form was submitted and doing that way was unsafe? if so what's the safe way?

  • @ZagreosTheUndead Basing a submissions safety off of values in hidden fields isn't safe. I cover how to eliminate the need to do this in later tutorials. I create a unique token key that changes each time a user changes the page.

see all

All Comments (35)

Sign In or Sign Up now to post a comment!
  • @derekbanas I see, I must have over looked it. Thank you.

  • This is complete and utter shit

  • @lordzzcabe I point out a bunch of security holes in PHP in this tutorial series. I then show you how to close them

  • Did you said this is not safe ? Why is not ?

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more