The implementation of the CULR proxy IP address! [Urgent] print $ _ SERVER ['remote _ ADDR ']; get the real IP address $ _ SERVER ['http _ X_FORWARDED_FOR']; get the proxy IP address & nbsp; returns the webpage content through proxy access. & lt ;? Php $ CULR proxy IP implementation, waiting for the gods! [Urgent]
Print $ _ SERVER ['remote _ ADDR ']; obtain the real IP address
$ _ SERVER ['http _ X_FORWARDED_FOR ']; obtains the proxy IP address.
Implement proxy access to the Web site to return webpage content
This is the code I wrote and is useless.
$ _ SERVER ['remote _ ADDR ']; print out my real IP address
$ _ SERVER ['http _ X_FORWARDED_FOR ']; the printed IP address is my virtual IP address.
The php curl ip proxy can display the IP address returned by the program as the proxy IP address: More
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.