How to View outgoing Headers from a remote Tinyproxy proxy

Issue

This Content is from SuperUser. Question asked by xstack

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



Solution

This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from SuperUser , is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?