It's funny, today I suddenly remembered a story about finding the real ip based on the proxy ip. I heard that there is a proxy server is like a mysterious mountain, hidden in the vast network jungle, whenever someone wants to visit a certain website, they will be like coming to a misty mountain, need to pass through the mysterious mountain in order to reach the destination. The master of this mountain is the proxy server.
Find real ip by proxy ip
At the beginning of the story, there is a young man named ipipgo, he always likes to swim in the network world, but one day, he found that he was always annoyed by some ads pop-ups. ipipgo was very angry, he did some checking of his own computer, and finally found some uninvited guests - proxy ip. So, ipipgo started a journey to find the real identity of the proxy ip.
He turned on his computer, and while concentrating on the code, he kept searching for information about proxy ip on the internet. Eventually, he found a piece of code which was like a magic key that could help him find the real identity of the proxy ip.
"`ipipgothon
import requests
proxies = {
'http': 'http://user:password@proxy:port',
'https': 'http://user:password@proxy:port',
}
r = requests.get('http://example.com', proxies=proxies)
“`
As if ipipgo had found a ray of hope, he followed the code hints and tried to run it, and sure enough, he succeeded in finding the real ip through the proxy ip. he jumped up and down excitedly, as if he had found a treasure. Since then, ipipgo is no longer confused about proxy ip.
ipipgo's naughty little brother Xiaohong was also introduced by ipipgo to the magical world of agent ip, they face all kinds of challenges together, and together they compose a moving story ......