terrylinooo / shieldon

Web Application Firewall (WAF) for PHP.
https://shieldon.io
MIT License
849 stars 98 forks source link

Can I test on localhost? #29

Closed jfzanato closed 4 years ago

jfzanato commented 4 years ago

I'm using Laragon on localhost and pretty url enable, so I can open my https://shieldon.test/ with no erros. But I can't open https://shieldon.test/firewall/panel/ because I receive a 404 error not found.

My code is:

<?php 

require_once(__DIR__.'/vendor/autoload.php');

$shieldon = new \Shieldon\Firewall\Integration\Bootstrap();
$shieldon->run();

What A'm I doing wrong?

terrylinooo commented 4 years ago

Hello. I don't know about Laragon, but URL rewrite is required to use Shieldon.

jfzanato commented 4 years ago

Hello! Laragon is like XAMPP, localhost development. If I setup rewrite with XAMPP, it should work?

terrylinooo commented 4 years ago

Hello! Laragon is like XAMPP, localhost development. If I setup rewrite with XAMPP, it should work?

Yes. It will.

Lucisu commented 4 years ago

I was with this same issue, just use the / at the end of the URL:

http://localhost/firewall/panel/