0

The main pursuit of this post is to find a way to view the HTTP(S) Headers that are outgoing from my open source proxy server, Tinyproxy. I would like to accomplish this with PHP if possible, but will use any approach that works. The goal is to not be blocked for website access.

I am running Tinyproxy on a remote Debian 10 VPS. It was easy to install and configure.

However there were various sites that refused connection thru Tinyproxy. This included Georgia State Univ. (GSU) Hyperphics site, Vitacost.com (vitamin and groceries) and Digikey.com (electronics parts).

I discovered in the Tinyproxy conf a "via" setting and I turned it off. Now GSU lets me in but I am still blocked by various other sites.

I created a php-webpage with various syntaxes that report a variety of Headers, but none of these syntaxes caught the "via" header that Tinyproxy was sending out.

At the risk of being too long winded, here are the Headers I checked for. $header_name = array( 'HTTP_VIA', 'HTTP_X_FORWARDED_FOR', 'HTTP_FORWARDED_FOR', 'HTTP_X_FORWARDED', 'HTTP_FORWARDED', 'HTTP_CLIENT_IP', 'HTTP_FORWARDED_FOR_IP', 'VIA', 'X_VIA', 'X_FORWARDED_FOR', 'FORWARDED_FOR', 'X_FORWARDED', 'FORWARDED', 'CLIENT_IP', 'FORWARDED_FOR_IP', 'HTTP_PROXY_CONNECTION', 'HTTP_X_CLUSTER_CLIENT_IP', 'HTTP_X_REAL_IP', 'X_MY_HEADER', 'REMOTE_ADDR' );

I have read of various somewhat exotic approaches to detecting VPNs and Proxies but kind of doubt that Vitacost.com is using these.

I have used Wireshark in the local arena but never remotely. I am aware of tcpdump but have not researched it yet.

Hope that this was not too long, Any/all help is appreciated. Thank you!

xstack

1
  • I should point out that the PHP script I mention was on a different server than the Tinyproxy VPS.
    – xstack
    Sep 19, 2022 at 2:15

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.