{"id":20940723,"url":"https://github.com/ianmurrays/codeigniter-csrf-lib","last_synced_at":"2026-04-09T10:03:30.964Z","repository":{"id":1303788,"uuid":"1246079","full_name":"ianmurrays/codeigniter-csrf-lib","owner":"ianmurrays","description":"Automagic CodeIgniter CSRF Protection Library","archived":false,"fork":false,"pushed_at":"2016-05-28T00:44:39.000Z","size":4,"stargazers_count":22,"open_issues_count":0,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T09:44:57.023Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ianmurrays.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-01-12T15:34:53.000Z","updated_at":"2022-03-13T09:51:35.000Z","dependencies_parsed_at":"2022-07-06T19:31:27.631Z","dependency_job_id":null,"html_url":"https://github.com/ianmurrays/codeigniter-csrf-lib","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianmurrays%2Fcodeigniter-csrf-lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianmurrays%2Fcodeigniter-csrf-lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianmurrays%2Fcodeigniter-csrf-lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianmurrays%2Fcodeigniter-csrf-lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ianmurrays","download_url":"https://codeload.github.com/ianmurrays/codeigniter-csrf-lib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254043215,"owners_count":22004911,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T23:11:39.217Z","updated_at":"2026-04-09T10:03:25.906Z","avatar_url":"https://github.com/ianmurrays.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CodeIgniter CSRF Library\n\nThis library automatically protects all your forms against Cross-Site Request Forgery attacks, more\ncommonly refered to as CSRF.\n\nJust put the `application/hooks/csrf.php` in your hooks folder, and the `application/config/hooks.php` \nfile in your hooks.php config file (or add the content in case you're already using a hook), and you're done!\n\nThe only caveat is that ajax POST requests will get rejected once the library is\ninstalled. To fix this you need to include the CSRF token in your requests. This\ntoken is injected into the `\u003chead\u003e` of your files automatically, so all you need \nto do is get it using any javascript framework and include it in the request. Check\nthe two lines just befor the ending your `\u003chead\u003e` (`\u003c/head\u003e`) to figure it out.\n\n## License\n\nLicense is the MIT license. This project belongs to [linkigniter](https://github.com/linkworks/linkigniter).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianmurrays%2Fcodeigniter-csrf-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fianmurrays%2Fcodeigniter-csrf-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianmurrays%2Fcodeigniter-csrf-lib/lists"}