Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Server Side Code Assuring Security Of Proxy Server  RSS feed

 
Robert Spero
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am outlining the frame work for a web application and it calls for url redirects through a proxy server. I want to keep the ip address and port of my proxy private and have the command sit on the server using:

System.setProperty("http.proxyServer","x.x.x.x");
System.setProperty("http.proxyPort","xxxx");

When I put this in a servlet will the users see it if they attempt to look at the site through firebug or something like that?
 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, those particular lines of code won't cause anything to show up on the client side.

However if you're using "redirect" in the correct technical sense, it isn't possible to tell the client browser to redirect a request to a new URL via a proxy server. So perhaps you were using the term loosely? Am I correct in guessing that when a servlet receives a particular request, it's going to generate an HTTP request which is sent from your server to another server via a proxy server which is in your server's network, and then do something like receiving the response from that other server and sending a copy of it back as the response to the client's request?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!