Anti CSRF token protection

preview_player
Показать описание
In this video we will build an Anti CSRF token protection. Cross-site request forgery, also known as one-click attack abbreviated as CSRF or XSRF, is a type of malicious exploit of a website where unauthorized commands are transmitted from a user that the web application trusts.

Source code:

Microphone I Use

Laptop
Рекомендации по теме
Комментарии
Автор

This is a great example of how anti-csrf token is implemented, other tutorials on YouTube are just talked too much for nothing. Thanks!

simonzhou
Автор

Finaly someone who gives the full picture with code and everything. And explaines it slowly thanks

allemannen
Автор

Legend! Helped me in my project lol <3

chinmayvaity
Автор

Will this code work if i will copy it word by word into the wordpress for my website? I am not really experienced in coding so i am not quite sure

gameshow
Автор

Hi, I have followed the example you give and as per your demonstration, when the form first loads, there isn't a $_POST['csrf'] number generated so when someone goes to fill in the form and submits it, nothing happens, but then, if they click submit a 2nd time, as long as all the other form validation is met, the form is processed.

Even though I have the form returning all but the passwords this could become annoying to new users and they may leave the site thinking it isn't working. Whats the best remedy for this?

Thanks

DavidAshby