473,396 Members | 2,140 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

how to detect proxy?

Hi guys,
What's a good way to detect if an ip is a proxy ?

Thanx ! :)
--
Yang
Jul 17 '05 #1
3 9835
Yang Li Ke wrote:
Hi guys,
What's a good way to detect if an ip is a proxy ?


Not sure if it's required, but the proxy some of our clients use sets
X-forwarded-for: in the headers. It probably isn't required as it could
be a bit of a security risk.
Jul 17 '05 #2
Not sure, but last time I played with a proxy, there was no http 1.1 but
rather 1.0, and always a connection-close, look at some of the headers that
are being passed, there may be enough to make an educated guess.

--
Mike Bradley
http://www.gzentools.com -- free online php tools
"Yang Li Ke" <ya******@sympatico.ca> wrote in message
news:En*******************@news20.bellglobal.com.. .
Hi guys,
What's a good way to detect if an ip is a proxy ?

Thanx ! :)
--
Yang

Jul 17 '05 #3
Found this at a UK site:

In order to send the appropriate response back to your computer, the web
server necessarily knows your computer's IP address, and a port number to
which to send the response. Your IP address seems to be 68.48.165.174, and
the port number used was 1106.

On the other hand, there could be one or more proxy servers between your
computer and the web server. If the HTTP request includes the header "Via",
or "X-Forwarded-For", then that's a strong indication that there is at least
one proxy server somewhere along the line.

If neither of those headers were present, that could mean that no proxy
servers were involved, or it could mean that they just chose not to "reveal"
themselves by adding those headers.

In this case since there is neither a "Via" header nor a "X-Forwarded-For"
header, there quite possibly isn't a proxy between your computer and the web
server. However, this isn't definite - it might be that there is a proxy,
but it just chose not to add the "Via" / "X-Forwarded-For" headers.

Uzytkownik "Kevin Thorpe" <ke***@pricetrak.com> napisal w wiadomosci
news:40***********************@news.easynet.co.uk. ..
Yang Li Ke wrote:
Hi guys,
What's a good way to detect if an ip is a proxy ?


Not sure if it's required, but the proxy some of our clients use sets
X-forwarded-for: in the headers. It probably isn't required as it could
be a bit of a security risk.

Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: harry | last post by:
Hi, I have a program that runs on multiple client pc's. Occasionally one or more of those pc's use VPN to connect to another corporate network. When using VPN they need to set proxy server in...
2
by: Sunny | last post by:
Sorry for the double post. I posted in m.o.dotnet.framework a few days ago, but no response, so I'm trying again. Hi, I need my application (C#, .Net framework 1.1 SP1) to be able to detect...
32
by: Victor | last post by:
I've been to a few websites where it displays the town, state (if USA), country I'm browsing from. Now, I know that detecting country is easy, but how do you determine the town? What ASP...
1
by: Steve.Goodman | last post by:
Appologies if this has already been asked, but after scanning the web and this news group I could find no decent solution. We have a windows App that calls a webservice, using this bit of basic...
4
by: Bmack500 | last post by:
I have the following bit of code: j2 = 0 If srvSC(j1) = "XCP CD Proxy" Then ReDim Preserve badGuys(j2) badGuys(j2) = j1 j2 += 1 End If Using .net methods, how can I detect if the badGuys...
21
by: nsimeonov | last post by:
Hello, Does anyone have any idea how Gmail does this? I have a web application and people complain sometimes about some problems and most of the time it turns out it's the browser's cache...
7
by: chandru1782 | last post by:
Dear friends, I am trying to use CPAN for installing some perl modules. i am using a ubuntu system, which has internet connection through lan and authenticated proxy. when trying to install...
11
by: jacob navia | last post by:
Hi Suppose that I want to create an array of read only items I overload the operator. How can I detect if I am being called within a read context foo = Array; or within a write context...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.