Athlon1600 / php-proxy

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

Baidu.com issue #48

Open webaddicto opened 7 years ago

webaddicto commented 7 years ago

With PR https://github.com/Athlon1600/php-proxy/pull/47 now baidu.com works fine, but there is a strange issue when clicking on search results.

For example, if I search for "php-proxy" and I click on the first link found, the content of the HTML page that contains two redirects (one via location.replace() and one via meta refresh) is not filtered via ProxifyPlugin. It looks like if it is ignored or if it is too early that OnCompleted() event can't catch it. See this image:

baidu-issue

bateller commented 7 years ago

Related to #43

Athlon1600 commented 7 years ago

meta refresh issue is now fixed: https://github.com/Athlon1600/php-proxy/commit/f182fd063b3c432c1b02e4d7dc9869a63a9c12fb

As far as Javascript problems, I would just disable javascript entirely for baidu.com from your config.php file like this:

$config['js_remove'] = array('baidu.com');