Тёмный

How To Use WordPress Nonce 

ScottsWeb Dev
Подписаться 41
Просмотров 55
50% 1

WordPress nonces add a layer of security to your forms and actions on your WordPress site.
Nonces add a layer of security by preventing a cross site forgery request (CSRF).
Learn how to use nonce's to prevent unauthorized actions on your site.
WordPress nonce's aren't truly a nonce (number used once), as they can be valid for up to 12 hours. But, the system still works and has the same effect to prevent CSRF.
There are two functions you'll need to be aware of for implementing nonce's in WordPress:
wp_nonce_field() and wp_verify_nonce().
In this demo I create a sample form, add the nonce field to the form, and verify the nonce upon posting.
** If this video was helpful, please consider subscribing to my channel! **
#wordpress #nonce #wordpresstutorial #websecurity #security

Опубликовано:

 

29 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии    
Далее
Radxa X4: An N100 Pi
20:48
Просмотров 48 тыс.
Is Linux A Bad Brand?
13:20
Просмотров 3,4 тыс.
8 Tips to Rank Higher with WordPress
9:32
Postgres just got even faster
26:42
Просмотров 31 тыс.