Git Product home page Git Product logo

ci-susantokun_csrf's Introduction

Cross-Site Request Forgery (CSRF) in CodeIgniter

Berikut adalah cara menggunakan ci-susantokun_csrf :

  1. Unduh, buat database, import database dan buka localhost/ci-susantokun_cstf di browser kesayangan kamu
  2. Masukkan data pada form dan submit
  3. Apakah data masuk? Jika data masuk maka selamat, kamu sudah berhasil input data ke database :v
  4. Pada kondisi awal csrf tidak aktif yang artinya jika kamu input data dari ci_csrf_attack (localhost/ci_cstf_attack) maka data bisa menerobos masuk ke database
  5. Untuk mengaktifkan CSRF pada ci-susantokun_csrf Anda lakukan langkah-langkah berikut :
  • Buka application\config\config.php dan ubah $config['csrf_protection'] = FALSE; menjadi $config['csrf_protection'] = TRUE; kemudian Ctrl + S
  • Buka application\views\csrf_form.php dan hapus "<!--" beserta "-->" sebelum </form>
  1. Maka perlindungan CSRF sudah aktif dan silakan lakukan hal yang sama
  2. Jika hasilnya data tidak masuk ke database (gagal) maka keamanan dari csrf sudah berhasil

Github, Youtube, Live Demo, Database dan Tutorial Lengkap

ci-susantokun_csrf's People

Contributors

susantokun avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.