Ana Sayfa / Kod ve Scriptler / Simple CSRF

Simple CSRF

Sayfadaki her forma csrf token'lı bir girdi otomatik olarak ekleyen basit CSRF eklentisi.

  • Yayın tarihi25 Haziran 2020
  • Paket içeriği.html, JavaScript .js
  • Son güncelleme26 Haziran 2020
  • Canlı demoVar
Simple CSRF

Overview

Simple CSRF

Simple CSRF plugin that automatically adds to each form on a page input with csrf token.

What is CSRF?

https://en.wikipedia.org/wiki/Cross-site_request_forgery

Why I need protection?

CSRF is a type of attack when hackers send maleficent requests to your website (in other words: do bad things). To prevent these attacks you need to "sign" each request with token, that will be checked on the website's server.

Ok, I got it. What to do next?

First of all you need to prepare your website server to generate and check token. When it will be done you can add CSRF protection to webpage, using this plugin.

Done. How to add the plugin to my website?

See Instructions block

Documentation

Documentation is provided with download file

I have questions

Features

  • Lightweight (~2.5 KB)
  • 5 min to install
  • No jQuery dependent
  • Supports all latest versions of browser including IE11 and above

Requirements

Setup backend server to provide CSRF token