Giter VIP home page Giter VIP logo

very-secure-php-ini's Introduction

very-secure-php-ini

how to properly and securely configure the entire php.ini file for the latest version of PHP

Most Important Values - (Draft)

expose_php = Off # prevents disclosure of PHP version from being sent in HTTP Headers

display_errors = Off

  • displays whether errors should be printed on the screen to everyone visiting the site, disable

allow_url_include = Off

  • allows risky website loading function
  • use with some caution

session.cookie_httponly = 1

  • disables access to cookies via Javascript APIs
  • use with some caution; might break something

session.use_strict_mode = 1

  • prevents session fixation attacks

session.cookie_secure = 1

  • requires cookies to be transmitted over HTTPS only

session.cookie_samesite = Strict

  • prevents cross-origin attacks

session.use_trans_sid = 0

  • you don't need this always make sure this is off

session.sid_length = 128

  • length of session string, prevents brute force attacks

session.sid_bits_per_character = 6

  • increases randomness of session string, prevents brute force attack

Further Info:

  1. This is the single best place to go to look up php.ini values: http://php.net/manual/en/ini.list.php. See what each value that you want to learn about does, if current values in your php.ini file have been deprecated in the current release, etc.

very-secure-php-ini's People

Contributors

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