Athlon1600 / php-proxy

A web proxy script written in PHP and built as an alternative to Glype.
https://www.php-proxy.com
MIT License
295 stars 158 forks source link

Exit php script execution if http response code is >=400 #148

Closed kosuodhmwa closed 2 years ago

kosuodhmwa commented 3 years ago

So ´index.php´ file will not show the input mask (for target website) anymore!!

-> That "fix" (in ´X.Y., ... comments´ in ´Resonse.php´ does not seem to help:


    // getHeaderLines
    public function __construct($content = '', $status = 200, $headers = array()){

        // X.Y., 2021-06-23 {
        if($status >= 400)
        {
            exit;           
        }
        // } X.Y., 2021-06-23

        $this->headers = new ParamStore($headers);

        $this->setContent($content);
        $this->setStatusCode($status);
    }

Will still show it. E.g. for a 404 as shown in that picture:

proxy

So: How to fix that issue?

!!! I don't think that it is usable for publishing if it shows that - everyone can abuse the proxy in that case !!!

kosuodhmwa commented 3 years ago

No answser...??

kosuodhmwa commented 3 years ago

-> https://github.com/Athlon1600/php-proxy-app/issues/203

kosuodhmwa commented 2 years ago

Problem solved by ignoring your product... ;-)