GithubHelp home page GithubHelp logo

rosell-dk / htaccess-capability-tester Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 3.0 310 KB

Detect if a given .htaccess feature works on the system

License: GNU General Public License v3.0

PHP 100.00%

htaccess-capability-tester's People

Contributors

rosell-dk avatar venkatraj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

htaccess-capability-tester's Issues

Make it possible to bypass file creation

In some cases, the location of the .htaccess matters and in some cases, files should not be written to that place.

Ie, in Wordpress, we might want to check capabilities in the plugin folder. But we do not want to write files there because that will cause some security plugins - like Wordfence - to trigger a warning.

In such cases, it will be handy to have use this framework to run test files already placed on the server.

Avoid having php files in the test dir

When a test relies on a php in the directory being tested, it implicitly relies on that there is not some configuration which is preventing PHP files from being run in that directory (would be a sensible thing to do in for example a directory which is intended for media files)

RewriteTester can be improved

  1. Redirect to a txt file rather than a php, as that would additionally require phps to be run in that directory
  2. A 500 Internal Server Error should be handled as a test failure. This ensures that the test reports failure when the server has been set up to disallow the required directives in the directory. This may in rare situations result in false negatives

Improve Crash Tester

  • Avoid a "test.php" file
  • Only report failure on a 500 Internal Server Error. All other status codes (even server errors) should report success

Add PHP 8.0 support

The composer.json only requires php 5.6 and 7.0 but no 8.0 which causes issue with our pipelines. Please add php 8.0 support

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.