1

My computer is connected to a local proxy. I want to know whether the outgoing script traffic from my computer goes through that proxy. If it is true how can I know? I'm using PHP scripts.

closed as off-topic by Marcus Müller, PwdRsch, Xander, Matthew, Steve Dec 12 '16 at 16:50

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not appear to be about Information security within the scope defined in the help center." – Xander, Matthew
If this question can be reworded to fit the rules in the help center, please edit the question.

  • it is going to depend on the kind of proxy you are using and how your computer is configured to connect to it. Packet captures are how you can know where your traffic is heading. – schroeder Dec 11 '16 at 16:31
  • it is connected to tor proxy @schroeder – theModerator713 Dec 11 '16 at 16:34
  • I don't mean where the proxy sends the traffic, I mean what does the proxy expect to handle? All network traffic? Just traffic from a specific browser? – schroeder Dec 11 '16 at 16:36
  • all network traffic. I'm using windows and I set the proxy in windows settings, to 127.0.0.1:9050 – theModerator713 Dec 11 '16 at 16:41
4

If your computer is connected to a local proxy this does not mean that all traffic is passing through this proxy. Only the applications which are aware of the proxy will use it. All other application will not use the proxy which means that they either have no connectivity at all (if the proxy is the only connectivity) or that they bypass the proxy and connect directly to the target.

Applications which are aware of the system wide proxy setting you have configured are usually the browsers (although Firefox and Chrome can have separate configurations too) but usually not some PHP programs you execute on the system.

  • how can I make the PHP programs I execute ,to be aware of the system wide proxy settings – theModerator713 Dec 11 '16 at 17:45
  • 1
    @theModerator713: I doubt that there is a general way for PHP to use the system proxy. But depending on the library you use within PHP you can set the proxy within the PHP code, like described in stackoverflow.com/questions/5211887/how-to-use-curl-via-a-proxy. But that's a programming question already and off-topic here. – Steffen Ullrich Dec 11 '16 at 17:55

Not the answer you're looking for? Browse other questions tagged or ask your own question.