Home > Net >  About the transfer the client visit
About the transfer the client visit

Time:10-13

If xx.com is on my side, A user access to come over, and then go to turn A user to access 123. com, 123. com website to take to the user A browse the related information, and then return when the user sees is A 123. com back (of course also hope that I can take to 123. com website xx.com return), may achieve so? Please give directions

CodePudding user response:

Read through this information would have had, and ready-made, what seems to be a statistics web site, you will get a js connection address registered, js links embedded into your home page, browsing your website at the same time, also the information captured statistics web site, you can log in statistical background to get the data this heart

CodePudding user response:

That you call the proxy server

CodePudding user response:

refer to the second floor wanghui0380 response:
that you call the proxy server


If only the commonly used way of agent is not achieve my said, such as 123. com target site is taken to the proxy server IP, is taking less than true IP client (I mean Request. ServerVariables [" REMOTE_ADDR "])

CodePudding user response:

Baidu iis, nginx reverse proxy

CodePudding user response:

The
reference 4 floor icoolno1 reply:
baidu iis, nginx reverse proxy


According to the experiment, IIS reverse proxy, unable to turn the client's IP to the target site (this is a real IP statements Request. Take ServerVariables agent after the target site "REMOTE_ADDR" took less than a client IP, take to the proxy server IP), and this is what I asked for a special place

CodePudding user response:

reference 5 floor zhlym reply:
Quote: refer to 4th floor icoolno1 response:
baidu iis, nginx reverse proxy


According to the experiment, IIS reverse proxy, unable to turn the client's IP to the target site (this is a real IP statements Request. Take ServerVariables agent after the target site "REMOTE_ADDR" took less than a client IP, take to the proxy server IP), and this is what I asked for a special place


The Head can be forwarded, nginx configuration, for example,

 
The location/some/path/{
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
Proxy_pass http://localhost:8000;
}

CodePudding user response:

refer to 6th floor icoolno1 response:
Quote: refer to the 5 floor zhlym response:
Quote: refer to 4th floor icoolno1 response:
baidu iis, nginx reverse proxy


According to the experiment, IIS reverse proxy, unable to turn the client's IP to the target site (this is a real IP statements Request. Take ServerVariables agent after the target site "REMOTE_ADDR" took less than a client IP, take to the proxy server IP), and this is what I asked for a special place


The Head can be forwarded, nginx configuration, for example,

 
The location/some/path/{
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
Proxy_pass http://localhost:8000;
}


韩老骥, you this sentence proxy_set_header - Real - IP $X remote_addr can make the target site on Request. The ServerVariables [" remote_addr "] got the client's IP? Because I tested IIS the reverse proxy server is a WINDOWS so, found no way to put the client's IP forwarding to the target site (I don't understand, likely also set), such as under to know

  •  Tags:  
  • C#
  • Related