In the JSP, the method to obtain the IP address of the client is: Request.getremoteaddr (), which is valid in most cases. However, the real IP address of the client cannot be obtained through the reverse proxy software such as Apache,squid. If the reverse
REMOTE_ADDR can only obtain IP settings that are set in the visitor's local connection, such as 10 of its own on a university campus network. X.xxx. XXX Series IP, and this function to get the IP address of the LAN gateway exit, if the visitor uses proxy server, will not obt
Obtain the Client IP address. Many codes use the value of HTTP_CLIENT_IP, HTTP_X_FORWARDED_FOR, and REMOTE_ADDR. For more information, see www. douban. comgrouptopic27482290. Obtain the Client IP address and verify that the IP address
achieve communication between the two networks, you must pass through the gateway. If the host in Network a discovers that the destination host for the packet is not on the local network, forwards the packet to its own gateway, which is then forwarded by the gateway to Network B's gateway, and the gateway of Network B is forwarded to a host on network B. The same is true of network B's process of forwarding packets to network A. Therefore, only if the IP
packets of IP header information, and then based on this information to understand the specific IP.
Hide IP
Although the method of reconnaissance IP is diverse, but the user can hide the IP method equally diverse. Take the most effective packet analysis method, you can in
in the JSP, the method to obtain the IP address of the client is: Request.getremoteaddr (), which is valid in most cases. However, after passing the reverse proxy software such as Apache,squid,nginx, due to the addition of the middle tier between the client and the service, So the IP that the Request.getremoteaddr ()
specified IP address so that others can modify the IP address even if they do not, and cannot connect to the network. You can use the address binding method to restrict IP addresses:
First, switch the system to the doscommand lin
REMOTE_ADDR can only obtain the IP address set in the visitor's local connection, for example, 10 configured on a college campus network. x. XXX. XXX series IP address. This function obtains the IP address of the LAN gateway egres
Use request. servervariables ("remote_addr") to obtain the IP address of the client, but if the client is accessed by the proxy server, the obtained IP address is the IP address of the
using in ASPRequest.ServerVariables ("REMOTE_ADDR") to obtain the IP address of the client, but if the client is using a proxy server for access, then the IP address of the proxy server is taken, not the true client
the network. When restricting IP addresses, you can use the address binding method:
First the system to switch to the DOS command line state, the implementation of the "Ipconfig/all" command, in the pop-up window, the NIC's MAC address, IP address recorded;
Below on the
"The difference between the three attributes of a User IP address (http_x_forwarded_for,http_via,rem_addr" )One, not using the proxy server situation:REMOTE_ADDR = Your IPHttp_via = no value or no displayHttp_x_forwarded_for = no value or no displaySecond, the use of transparent proxy server situation: Transparent Pr
Using in ASPRequest.ServerVariables ("REMOTE_ADDR") to obtain the IP address of the client, but if the client is accessed using a proxy server, then the IP address of the proxy server is taken, not the real client
vswitch to the port, illegal users can modify the MAC address of the local Nic without authorization, the network access of the machine will be unable to be implemented because the MAC address is determined by the switch as illegal. In this way, they do not dare to change. Log on to the switch (Cisco switch is used in our Organization, and I think there are similar vswitches of other brands), and enter th
address, you can also directly specify the IP address, so that other people even if the address has been modified, can not be connected to the network. When restricting IP addresses, you can use the address binding method:
First
, the IP address of the workstation cannot be changed at will. If you forcibly change the IP address at this time, your workstation will not be connected to the Internet in any case. Although this method is a little simple, it is only valid for workstations that access the Internet through
ARP: Address Resolution Protocol
When a host sends an Ethernet data frame to another host located on the same LAN, the destination interface is determined based on the 48-bit ethernet address. Device DriverProgramNever check the destination IP address in the IP datagram.
This article mainly introduces PHP to obtain the User IP address method, the need for friends can refer to the following REMOTE_ADDR can only obtain IP settings that are set in the visitor's local connection, such as 10 of its own on a university campus network. X.xxx. XXX Series IP, and this function to get the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.