omerfdmrl / security
Security Class
v2.1.11
2021-11-06 16:32 UTC
README
Advanced Security Class for Php
Features
- Secure From XSS, CSRF, SQL Injection, BASE64, RFI, LFI, Command Injection, Block Suspicious Request Methods, Block Suspicious User Agents And Requests
- Block exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source Functions
- Advanced Encrypte - Decrypte
- Undecryptable Encryption
- Advanced WAF system
Install
run the following command directly.
$ composer require omerfdmrl/security
Example Usage
include 'vendor/autoload.php'; use Omerfdmrl\Security\Security; $security = new Security; // Default is: AES-128-ECB $security->set_cipher('AES-128-ECB'); // Default is: md5(your-domain) $security->set_key('My Secure Key'); // Default is: ['jpg','png','gif'] | Default refused extensions is: ['php','bat',''] $security->set_allowedExtension(array('jpg','png','gif')); // Default is: _token $security->set_tokenName('_token'); // Default is: getcwd() . '/.htaccess' $security->set_htaccessPath(__DIR__ . '.htaccess'); // Default is: True,True,True,True,True | You must call waf() function // postControl, getControl, fileControl, csrfControl, writeHtaccess $security->waf(True,True,True,True,True);
Docs
Documentation page: Security Docs
Licence
Contributing
- Fork it ( https://github.com/omerfdmrl/security/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- omerfdmrl Ă–mer Faruk Demirel - creator, maintainer