List of All Basic PHP Security You Need to Know | PHP Security for Beginners | PHP Security Lesson

Sdílet
Vložit
  • čas přidán 5. 09. 2024

Komentáře • 43

  • @Dani_Krossing
    @Dani_Krossing  Před rokem +16

    Do know that this video does NOT cover ALL security in PHP. 👈 But it is a really good starting point for beginners, to learn PHP security. 🙂 I have to disclaim this, since some people will inevitably skip reading the title, the description, and the intro to the video, and then proceed to tell me in the comments that "this isn't ALL security! CLICKBAIT!" 😂

    • @tiagoborges5108
      @tiagoborges5108 Před rokem

      I apreciate this video but why not make a video with login form or a pay out to exemplifie better the concepts.

    • @ReptilianXHologram
      @ReptilianXHologram Před rokem +2

      Where can I go to find where there is something that does cover ALL security in PHP?

    • @earthssatisfaction6878
      @earthssatisfaction6878 Před 11 měsíci

      i\ve tried using the header function to check if the user ended up on the validation.php page without submiting the form, but it dosen't work.
      i'm using 000webhost to host my test website and i think it has something to do with them,
      if i use header at the end of the validation or to check if the user submited the form, i get an error saying that i'm not allowed to change header and stuff
      Warning: Cannot modify header information - Header already sent by (Output started at /blog/wp-config.php:31) something llike this...
      and, if i don't use $_server self in the action of the form, after submiting i get stuck on the white php validation page...
      are this type of errors a result of webhosting or what?
      another problem that i've hade, was space lines in textarea when users send a message or comment
      messages with a line empty...whould not send the email
      i've figured it out with a function nl2br()... found the fix on a forum...
      but now i'm stuck in the email with and html characters for ? or ' and so on

    • @musicisasuperpower
      @musicisasuperpower Před 9 měsíci +3

      @@ReptilianXHologramThe main rule with security is don't try to do everything yourself, esp. regarding encryption etc. It is better to use frameworks or plugins which are used and tested by 100,000 other developers.

    • @ReptilianXHologram
      @ReptilianXHologram Před 3 měsíci

      @@musicisasuperpower I see your point but I just want to know the main ones I should learn about myself/the most important ones.

  • @abdullahikabri5912
    @abdullahikabri5912 Před 8 měsíci +4

    Dani is probably the programmer I was looking for, defies all the common programming semantics with an easy and comprehensive style. Super thanks to you man!

  • @x7khalid
    @x7khalid Před rokem +3

    I really learned a new staff from this video.
    Thanks for the effort to show it as a video.

  • @OnyeStephen
    @OnyeStephen Před rokem +3

    I keep looking forward to your videos, and like them before watching

  • @muhammadyahaya7795
    @muhammadyahaya7795 Před rokem +3

    I have being enjoying your recent videos on php man, you are doing well, to fully grab all this concepts it would be nice you if can make a video tutorial coding an application (complex one) which will give more insight on how to implement these things. Thanks 🚀⭐

  • @ionutcornea5469
    @ionutcornea5469 Před rokem +3

    Great video as always, Dani! Gbu!

  • @matteoporrani4271
    @matteoporrani4271 Před rokem +3

    I really like your videos, please keep going!!

  • @jediampm
    @jediampm Před rokem +1

    Hi, thanks.
    indeed it is a good video. You all should keep it in your bookmarks browser. 👌

  • @basilistigris640
    @basilistigris640 Před rokem +1

    thank you for great PHP Security for Beginners

  • @richarddelaltre8804
    @richarddelaltre8804 Před měsícem

    Please make a video for native PHP pessimistic locking.

  • @legendofgaming8481
    @legendofgaming8481 Před rokem +1

    This is amazing content! Might need part 2

  • @sudhakar7400
    @sudhakar7400 Před rokem +1

    Really you doing a great job Thank you

  • @ayoxen4031
    @ayoxen4031 Před 7 měsíci

    Could you extend your last PHP course by adding security based video where you actually implement those things?

  • @mdatheeb
    @mdatheeb Před měsícem

    I'm the 999th like on this video 😃

  • @sonamohialdin3376
    @sonamohialdin3376 Před rokem +1

    Very helpful tutorial thank you

  • @nouralihassan2482
    @nouralihassan2482 Před rokem

    sir you are very good to clarify everything and i get it when im only with you if i leave i don't remember even the code so plz help me out bro

  • @mortwain1809
    @mortwain1809 Před rokem +2

    Thnx for video

  • @zeekronofficial8124
    @zeekronofficial8124 Před rokem +1

    Amazing mahn. thanks for this insightful tutorial

  • @user-mf3kp4ec3k
    @user-mf3kp4ec3k Před rokem

    You have really helped me in writing a really good website, love your videos, very informative.
    Please can I ask if you can consider writing a forgotten password video in the MVC model? I've managed to do it with the uploading gallery video you have, struggling to get forgotten password one to work in MVC model. Would appreciate the help. 🙃

  • @orangetelecom6600
    @orangetelecom6600 Před 8 měsíci

    Very useful. Thank you so much

  • @SnakesRaven
    @SnakesRaven Před rokem +1

    Hero! 👍

  • @glenrose9092
    @glenrose9092 Před rokem +1

    Super god video!

  • @peterg902
    @peterg902 Před rokem

    Fairly new to this area. Wouldn't it be better to keep the CSRF token out of a hidden field form, and just check the session variable when the form is submitted to its script (e.g., hidden form fields contents can be easily accessed and stolen)?

    • @Dani_Krossing
      @Dani_Krossing  Před rokem +3

      CSRF works by keeping a token locally and on the server. And whenever a user performs a request, we compare the tokens to check if they match. And this can be done either using a hidden input, a custom HTTP header using JavaScript, or by passing it through the URL. 🙂 There is no danger in keeping it in a hidden input, as long as you protect against XSS attacks, and make sure not to visibly expose it all over your epplication. The only "bad thing" that happens if a user changes it using the developer tool, is that the request fails on the next page. 🙂 So worst case, the user just receives an error message.

  • @yasiramer2013
    @yasiramer2013 Před rokem +1

    Perfect.

  • @teemos2732
    @teemos2732 Před 5 měsíci

    You sir, are l337 ;o) Thank you.

  • @TheHogPresident
    @TheHogPresident Před rokem

    I know this isn't all security when it comes to PHP but would an application be really secure with only these principles in your opinion?

    • @Dani_Krossing
      @Dani_Krossing  Před rokem +1

      No. These are just the basics. This is also why many prefer frameworks, because they have “out of the box” security, since security is such a big area of PHP.

    • @TheHogPresident
      @TheHogPresident Před rokem

      @@Dani_Krossing will you making videos going over what are frameworks?

  • @ParthSolanki-y7v
    @ParthSolanki-y7v Před 23 dny

    PHP Security Best Practices:
    1. Validate Input.
    2. Sanitize Output.
    3. Use Prepared Statements.
    4. Try to remember these steps on Monday... 😅

  • @ahmadbelkadi2766
    @ahmadbelkadi2766 Před rokem

    We need part2

  • @Stoney_Eagle
    @Stoney_Eagle Před rokem +2

    Lemme hack you, hold my beer 😂

  • @sabeloshange6335
    @sabeloshange6335 Před rokem +1

    1st

  • @adilechalh4753
    @adilechalh4753 Před 6 měsíci

    Mrbeast ????????????

  • @20toninho
    @20toninho Před 11 měsíci

    its the first time that im seeing this video, but this dude looks like elon musk to much to pay attention about video content