GithubHelp home page GithubHelp logo

putunebandi / php-security-plugin Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 150 KB

This project is a simple implementation to improve security in PHP applications.

License: MIT License

PHP 100.00%
cybersecurity mitigation php-security security web

php-security-plugin's Introduction

php-security-plugin

made-with-PHP license issues

BandiSecurity Logo

This project is a simple implementation to improve security in PHP applications. The Security class provides several basic security features, including setting security headers and filtering parameters to protect against potential attacks.


โ— Disclaimer
This plugin is created solely for educational purposes and to provide an additional layer of security against cyber attacks. While it can help reduce risks, it is highly recommended to continue using a comprehensive Security Information and Event Management (SIEM) system for optimal protection. We explicitly state that we are not responsible for any illegal actions taken through the use of this plugin."

Resources

Installation

You can use this security plugin easily by simply copying or download the code from the BandiSecurity.php and including the script into the main configuration or header file.

Usage

You can enhance the security layer of your PHP project by utilizing the 'Security' class. It offers easy integration and can be customized to meet your specific needs. Here's an example code snippet for implementation.

  1. Using .htaccess
php_value auto_prepend_file '/home/putunebandi/php-security-plugin/BandiSecurity.php'
  1. Using include_once() or require_once()
<?php
// ...
include_once('BandiSecurity.php');
// or use
require_once('BandiSecurity.php');
// ...
?>
  1. Adding Code to Main Configuration or Header
<?php

// Simple PHP Security Plugin
// Coded by Rizki Wahyu Pratama
// Thanks to Afrizal F.A, incrustwerush.org, @dwisiswant0, noobsec.org

if (!class_exists('Security')) {
    class Security
    {
        // ...
        // ...
    }

    Security::setHeaders();
    Security::applySecurity();
}
?>
<?php
// Your config or header here
?>

License

Please see the LICENSE file for more information.

Thanks

Thanks for some references and ideas for making this tool

php-security-plugin's People

Contributors

putunebandi 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.