Решил пробовать здесь код из видеоролика с urllib.urlopen('http://www.whatismyip.com/',proxies=proxy2) но получил в ответ ошибку 403, посмотрел еще 3 видео про urllib, пришел к выводу, что лучше использовать urlib2 - скопировал пример кода и загрузил страницу (но без прокси). В следующем посте продолжу экспериментировать с urllib2.headers.headers ... proxy и посмотрю видео
Здесь несколько строк: создаем словарь с адресом бесплатного прокси. Потом скачиваем страницу, сохраняем ее на диск. Вот только я запрашиваемую страницу не получил, а вместо нее загрузилась страница ошибки 403.
Поиски причин ошибки навели на размышления о том, что:
1. В документации есть предупреждения о том, что urllib устарела, а объектная модель urllib2 тоже изменене в Python 3
2. Так что, не стоит тратить много времени на раешение проблем с доступом, ...обработку подобных ошибок, они, скорее всего давно решены в библиотеках типа Scrapy.
3. Надо подобрать инструмент для мониторинга HTTP заголовков. В Kali для этого есть уйма перехватывающих прокси, а вот что использовать в Windows?
1. В документации есть предупреждения о том, что urllib устарела, а объектная модель urllib2 тоже изменене в Python 3
2. Так что, не стоит тратить много времени на раешение проблем с доступом, ...обработку подобных ошибок, они, скорее всего давно решены в библиотеках типа Scrapy.
3. Надо подобрать инструмент для мониторинга HTTP заголовков. В Kali для этого есть уйма перехватывающих прокси, а вот что использовать в Windows?
Повтряем код из первого видеоролика¶
In [1]:
import urllib
Берем адрес прокси отсюда http://hidemyass.com/proxy-list/ и формируем строчку в словаре:
In [9]:
proxy={'http':'http://177.124.89.82:3128'}
In [10]:
urllib.urlopen('http://www.myip.net/',proxies=proxy)
Out[10]:
<addinfourl at 85233928L whose fp = <socket._fileobject object at 0x000000000513F048>>
Здесь можно прочитать подробности help urllib.urlopen. Некстати, есть команда прямого копирования url в файл..., и совсем некстати, есть рассуждения и системных подключениях прокси...
In [12]:
f=Out[10]
In [16]:
contents=f.read()
In [33]:
f.headers.getheaders.
Out[33]:
<bound method HTTPMessage.getheaders of <httplib.HTTPMessage instance at 0x0000000005149148>>
In [19]:
contents
Out[19]:
''
In []:
open('document.html','w').write(contents)
In [18]:
open('document2.html','w').write(contents)
In [23]:
proxy2={'http':'http://94.228.205.33:8080'}
f2=urllib.urlopen('http://www.whatismyip.com/',proxies=proxy2)
In [24]:
contents2=f2.read()
contents2
Out[24]:
'<html>\n<head><title>403 Forbidden</title></head>\n<body bgcolor="white">\n<center><h1>403 Forbidden</h1></center>\n<hr><center>nginx</center>\n</body>\n</html>\n'
Проверяем с другими прокси-серверами и получаем тот же ответ¶
In [25]:
proxy2={'http':'http://195.191.78.193:8080'}
f2=urllib.urlopen('http://www.whatismyip.com/',proxies=proxy2)
contents2=f2.read()
contents2
Out[25]:
'<html>\n<head><title>403 Forbidden</title></head>\n<body bgcolor="white">\n<center><h1>403 Forbidden</h1></center>\n<hr><center>nginx</center>\n</body>\n</html>\n'
In [26]:
open('document2.html','w').write(contents2)
In [29]:
proxy2={'http':'http://113.28.244.195:3128'}
f2=urllib.urlopen('http://www.whatismyip.com/',proxies=proxy2)
contents2=f2.read()
contents2
Out[29]:
'<html>\n<head><title>403 Forbidden</title></head>\n<body bgcolor="white">\n<center><h1>403 Forbidden</h1></center>\n<hr><center>nginx</center>\n</body>\n</html>\n'
Если убрать прокси, то то выскочит такая же ошибка.¶
In [31]:
f2=urllib.urlopen('http://www.whatismyip.com/')
contents2=f2.read()
contents2
Out[31]:
'<html>\n<head><title>403 Forbidden</title></head>\n<body bgcolor="white">\n<center><h1>403 Forbidden</h1></center>\n<hr><center>nginx</center>\n</body>\n</html>\n'
И тут выясняется, что дело в том, что заголовки HTTP запросов блокируются... Как ими вообще управлять? Оказывается, что нужна другая библиотека.
Почему выдается 403 ошибка?¶
Дело, по-видимому в том, что нужны соответствующие заголовки. Вот здесь есть рецепты urllib2.HTTPError: HTTP Error 403: Forbidden
Там же можно прочитать:
It's true that some sites (including Wikipedia) block on common non-browser user agents strings, like the "Python-urllib/x.y" sent by Python's libraries. Even a plain "Mozilla" or "Opera" is usually enough to bypass that. This doesn't apply to the original question, of course, but it's still useful to know.
Там же можно прочитать:
It's true that some sites (including Wikipedia) block on common non-browser user agents strings, like the "Python-urllib/x.y" sent by Python's libraries. Even a plain "Mozilla" or "Opera" is usually enough to bypass that. This doesn't apply to the original question, of course, but it's still useful to know.
In [34]:
import urllib2,cookielib
site= "http://www.whatismyip.com/"
hdr = {'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11',
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'Accept-Charset': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
'Accept-Encoding': 'none',
'Accept-Language': 'en-US,en;q=0.8',
'Connection': 'keep-alive'}
req = urllib2.Request(site, headers=hdr)
try:
page = urllib2.urlopen(req)
except urllib2.HTTPError, e:
print e.fp.read()
content = page.read()
print content
<!DOCTYPE html> <html lang="en-US"> <head> <meta charset="UTF-8"/> <title>What Is My IP - The IP Address Experts Since 1999</title> <meta name="viewport" content="width=device-width, initial-scale=1"/> <script type="text/javascript"> //<![CDATA[ try{if (!window.CloudFlare) {var CloudFlare=[{verbose:0,p:0,byc:0,owlid:"cf",bag2:1,mirage2:{profile:false},oracle:0,paths:{cloudflare:"/cdn-cgi/nexp/dok9v=e9cb4febb4/"},atok:"28228a290d71389e6953fc8d2803d4c7",petok:"f3ddecd313a4aec97a464782796bc373841e704e-1401024531-1800",zone:"whatismyip.com",rocket:"a",apps:0}];document.write('<script type="text/javascript" src="//ajax.cloudflare.com/cdn-cgi/nexp/dok9v=97fb4d042e/cloudflare.min.js"><'+'\/script>');}}catch(e){}; //]]> </script> <link rel="alternate" hreflang="es" href="http://www.whatismyip.com/es/"/> <meta name="robots" content="noodp"/> <meta name="description" content="Lookup, Trace, Locate, Change, Hide ANY IP Address"/> <meta name="keywords" content="ip, what is my ip, my ip, my ip address, ip address"/> <link rel="canonical" href="http://www.whatismyip.com/"/> <link rel="publisher" href="https://plus.google.com/+whatismyip/posts"/> <meta name="twitter:card" content="summary"/> <meta name="twitter:site" content="@whatismyip"/> <meta name="twitter:domain" content="What Is My IP ®"/> <meta name="twitter:creator" content="@whatismyip"/> <link rel="dns-prefetch" href="//connect.facebook.net"> <link rel="alternate" type="application/rss+xml" title="What Is My IP ® » Feed" href="http://www.whatismyip.com/feed/"/> <link rel="alternate" type="application/rss+xml" title="What Is My IP ® » Comments Feed" href="http://www.whatismyip.com/comments/feed/"/> <link rel="alternate" type="application/rss+xml" title="What Is My IP ® » Home Comments Feed" href="http://www.whatismyip.com/home/feed/"/> <link rel='stylesheet' id='eleven40-pro-theme-css' href='http://www.whatismyip.com/wp-content/themes/eleven40-pro/style.css' type='text/css' media='all'/> <script type='text/rocketscript' data-rocketsrc='http://www.whatismyip.com/wp-includes/js/jquery/jquery.js'></script> <script type='text/rocketscript' data-rocketsrc='http://www.whatismyip.com/wp-includes/js/jquery/jquery-migrate.min.js'></script> <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://www.whatismyip.com/xmlrpc.php?rsd"/> <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://www.whatismyip.com/wp-includes/wlwmanifest.xml"/> <link rel='shortlink' href='http://www.whatismyip.com/'/> <style type='text/css'>#widget-collapscat-4-top span.collapsing.categories{border:0;padding:0;margin:0;cursor:pointer;}#widget-collapscat-4-top li.widget_collapscat h2 span.sym{float:right;padding:0 .5em}#widget-collapscat-4-top li.collapsing.categories.self a{font-weight:bold}#widget-collapscat-4-top:before{content:'';}#widget-collapscat-4-top li.collapsing.categories:before{content:'';}#widget-collapscat-4-top li.collapsing.categories{list-style-type:none}#widget-collapscat-4-top li.collapsing.categories{padding:0 0 0 1em;text-indent:-1em;}#widget-collapscat-4-top li.collapsing.categories.item:before{content:'\00BB \00A0'!important;}#widget-collapscat-4-top li.collapsing.categories .sym{cursor:pointer;font-size:1.1em;font-family:Arial,Helvetica;padding-right:5px;}#widget-collapscat-7-top span.collapsing.categories{border:0;padding:0;margin:0;cursor:pointer;}#widget-collapscat-7-top li.widget_collapscat h2 span.sym{float:right;padding:0 .5em}#widget-collapscat-7-top li.collapsing.categories.self a{font-weight:bold}#widget-collapscat-7-top:before{content:'';}#widget-collapscat-7-top li.collapsing.categories:before{content:'';}#widget-collapscat-7-top li.collapsing.categories{list-style-type:none}#widget-collapscat-7-top li.collapsing.categories{padding:0 0 0 1em;text-indent:-1em;}#widget-collapscat-7-top li.collapsing.categories.item:before{content:'\00BB \00A0'!important;}#widget-collapscat-7-top li.collapsing.categories .sym{cursor:pointer;font-size:1.1em;font-family:Arial,Helvetica;padding-right:5px;}#widget-collapscat-8-top span.collapsing.categories{border:0;padding:0;margin:0;cursor:pointer;}#widget-collapscat-8-top li.widget_collapscat h2 span.sym{float:right;padding:0 .5em}#widget-collapscat-8-top li.collapsing.categories.self a{font-weight:bold}#widget-collapscat-8-top:before{content:'';}#widget-collapscat-8-top li.collapsing.categories:before{content:'';}#widget-collapscat-8-top li.collapsing.categories{list-style-type:none}#widget-collapscat-8-top li.collapsing.categories{padding:0 0 0 1em;text-indent:-1em;}#widget-collapscat-8-top li.collapsing.categories.item:before{content:'\00BB \00A0'!important;}#widget-collapscat-8-top li.collapsing.categories .sym{cursor:pointer;font-size:1.1em;font-family:Arial,Helvetica;padding-right:5px;}#widget-collapscat-9-top span.collapsing.categories{border:0;padding:0;margin:0;cursor:pointer;}#widget-collapscat-9-top li.widget_collapscat h2 span.sym{float:right;padding:0 .5em}#widget-collapscat-9-top li.collapsing.categories.self a{font-weight:bold}#widget-collapscat-9-top:before{content:'';}#widget-collapscat-9-top li.collapsing.categories:before{content:'';}#widget-collapscat-9-top li.collapsing.categories{list-style-type:none}#widget-collapscat-9-top li.collapsing.categories{padding:0 0 0 1em;text-indent:-1em;}#widget-collapscat-9-top li.collapsing.categories.item:before{content:'\00BB \00A0'!important;}#widget-collapscat-9-top li.collapsing.categories .sym{cursor:pointer;font-size:1.1em;font-family:Arial,Helvetica;padding-right:5px;}#widget-collapscat-12-top span.collapsing.categories{border:0;padding:0;margin:0;cursor:pointer;}#widget-collapscat-12-top li.widget_collapscat h2 span.sym{float:right;padding:0 .5em}#widget-collapscat-12-top li.collapsing.categories.self a{font-weight:bold}#widget-collapscat-12-top:before{content:'';}#widget-collapscat-12-top li.collapsing.categories:before{content:'';}#widget-collapscat-12-top li.collapsing.categories{list-style-type:none}#widget-collapscat-12-top li.collapsing.categories{padding:0 0 0 1em;text-indent:-1em;}#widget-collapscat-12-top li.collapsing.categories.item:before{content:'\00BB \00A0'!important;}#widget-collapscat-12-top li.collapsing.categories .sym{cursor:pointer;font-size:1.1em;font-family:Arial,Helvetica;padding-right:5px;}#widget-collapscat-15-top span.collapsing.categories{border:0;padding:0;margin:0;cursor:pointer;}#widget-collapscat-15-top li.widget_collapscat h2 span.sym{float:right;padding:0 .5em}#widget-collapscat-15-top li.collapsing.categories.self a{font-weight:bold}#widget-collapscat-15-top:before{content:'';}#widget-collapscat-15-top li.collapsing.categories:before{content:'';}#widget-collapscat-15-top li.collapsing.categories{list-style-type:none}#widget-collapscat-15-top li.collapsing.categories{padding:0 0 0 1em;text-indent:-1em;}#widget-collapscat-15-top li.collapsing.categories.item:before{content:'\00BB \00A0'!important;}#widget-collapscat-15-top li.collapsing.categories .sym{cursor:pointer;font-size:1.1em;font-family:Arial,Helvetica;padding-right:5px;}#widget-collapscat-16-top span.collapsing.categories{border:0;padding:0;margin:0;cursor:pointer;}#widget-collapscat-16-top li.widget_collapscat h2 span.sym{float:right;padding:0 .5em}#widget-collapscat-16-top li.collapsing.categories.self a{font-weight:bold}#widget-collapscat-16-top:before{content:'';}#widget-collapscat-16-top li.collapsing.categories:before{content:'';}#widget-collapscat-16-top li.collapsing.categories{list-style-type:none}#widget-collapscat-16-top li.collapsing.categories{padding:0 0 0 1em;text-indent:-1em;}#widget-collapscat-16-top li.collapsing.categories.item:before{content:'\00BB \00A0'!important;}#widget-collapscat-16-top li.collapsing.categories .sym{cursor:pointer;font-size:1.1em;font-family:Arial,Helvetica;padding-right:5px;}#widget-collapscat-17-top span.collapsing.categories{border:0;padding:0;margin:0;cursor:pointer;}#widget-collapscat-17-top li.widget_collapscat h2 span.sym{float:right;padding:0 .5em}#widget-collapscat-17-top li.collapsing.categories.self a{font-weight:bold}#widget-collapscat-17-top:before{content:'';}#widget-collapscat-17-top li.collapsing.categories:before{content:'';}#widget-collapscat-17-top li.collapsing.categories{list-style-type:none}#widget-collapscat-17-top li.collapsing.categories{padding:0 0 0 1em;text-indent:-1em;}#widget-collapscat-17-top li.collapsing.categories.item:before{content:'\00BB \00A0'!important;}#widget-collapscat-17-top li.collapsing.categories .sym{cursor:pointer;font-size:1.1em;font-family:Arial,Helvetica;padding-right:5px;}#widget-collapscat-18-top span.collapsing.categories{border:0;padding:0;margin:0;cursor:pointer;}#widget-collapscat-18-top li.widget_collapscat h2 span.sym{float:right;padding:0 .5em}#widget-collapscat-18-top li.collapsing.categories.self a{font-weight:bold}#widget-collapscat-18-top:before{content:'';}#widget-collapscat-18-top li.collapsing.categories:before{content:'';}#widget-collapscat-18-top li.collapsing.categories{list-style-type:none}#widget-collapscat-18-top li.collapsing.categories{padding:0 0 0 1em;text-indent:-1em;}#widget-collapscat-18-top li.collapsing.categories.item:before{content:'\00BB \00A0'!important;}#widget-collapscat-18-top li.collapsing.categories .sym{cursor:pointer;font-size:1.1em;font-family:Arial,Helvetica;padding-right:5px;}#widget-collapscat-19-top span.collapsing.categories{border:0;padding:0;margin:0;cursor:pointer;}#widget-collapscat-19-top li.widget_collapscat h2 span.sym{float:right;padding:0 .5em}#widget-collapscat-19-top li.collapsing.categories.self a{font-weight:bold}#widget-collapscat-19-top:before{content:'';}#widget-collapscat-19-top li.collapsing.categories:before{content:'';}#widget-collapscat-19-top li.collapsing.categories{list-style-type:none}#widget-collapscat-19-top li.collapsing.categories{padding:0 0 0 1em;text-indent:-1em;}#widget-collapscat-19-top li.collapsing.categories.item:before{content:'\00BB \00A0'!important;}#widget-collapscat-19-top li.collapsing.categories .sym{cursor:pointer;font-size:1.1em;font-family:Arial,Helvetica;padding-right:5px;}#widget-collapscat-20-top span.collapsing.categories{border:0;padding:0;margin:0;cursor:pointer;}#widget-collapscat-20-top li.widget_collapscat h2 span.sym{float:right;padding:0 .5em}#widget-collapscat-20-top li.collapsing.categories.self a{font-weight:bold}#widget-collapscat-20-top:before{content:'';}#widget-collapscat-20-top li.collapsing.categories:before{content:'';}#widget-collapscat-20-top li.collapsing.categories{list-style-type:none}#widget-collapscat-20-top li.collapsing.categories{padding:0 0 0 1em;text-indent:-1em;}#widget-collapscat-20-top li.collapsing.categories.item:before{content:'\00BB \00A0'!important;}#widget-collapscat-20-top li.collapsing.categories .sym{cursor:pointer;font-size:1.1em;font-family:Arial,Helvetica;padding-right:5px;}#widget-collapscat-21-top span.collapsing.categories{border:0;padding:0;margin:0;cursor:pointer;}#widget-collapscat-21-top li.widget_collapscat h2 span.sym{float:right;padding:0 .5em}#widget-collapscat-21-top li.collapsing.categories.self a{font-weight:bold}#widget-collapscat-21-top:before{content:'';}#widget-collapscat-21-top li.collapsing.categories:before{content:'';}#widget-collapscat-21-top li.collapsing.categories{list-style-type:none}#widget-collapscat-21-top li.collapsing.categories{padding:0 0 0 1em;text-indent:-1em;}#widget-collapscat-21-top li.collapsing.categories.item:before{content:'\00BB \00A0'!important;}#widget-collapscat-21-top li.collapsing.categories .sym{cursor:pointer;font-size:1.1em;font-family:Arial,Helvetica;padding-right:5px;}#widget-collapscat-22-top span.collapsing.categories{border:0;padding:0;margin:0;cursor:pointer;}#widget-collapscat-22-top li.widget_collapscat h2 span.sym{float:right;padding:0 .5em}#widget-collapscat-22-top li.collapsing.categories.self a{font-weight:bold}#widget-collapscat-22-top:before{content:'';}#widget-collapscat-22-top li.collapsing.categories:before{content:'';}#widget-collapscat-22-top li.collapsing.categories{list-style-type:none}#widget-collapscat-22-top li.collapsing.categories{padding:0 0 0 1em;text-indent:-1em;}#widget-collapscat-22-top li.collapsing.categories.item:before{content:'\00BB \00A0'!important;}#widget-collapscat-22-top li.collapsing.categories .sym{cursor:pointer;font-size:1.1em;font-family:Arial,Helvetica;padding-right:5px;}#widget-collapscat-23-top span.collapsing.categories{border:0;padding:0;margin:0;cursor:pointer;}#widget-collapscat-23-top li.widget_collapscat h2 span.sym{float:right;padding:0 .5em}#widget-collapscat-23-top li.collapsing.categories.self a{font-weight:bold}#widget-collapscat-23-top:before{content:'';}#widget-collapscat-23-top li.collapsing.categories:before{content:'';}#widget-collapscat-23-top li.collapsing.categories{list-style-type:none}#widget-collapscat-23-top li.collapsing.categories{padding:0 0 0 1em;text-indent:-1em;}#widget-collapscat-23-top li.collapsing.categories.item:before{content:'\00BB \00A0'!important;}#widget-collapscat-23-top li.collapsing.categories .sym{cursor:pointer;font-size:1.1em;font-family:Arial,Helvetica;padding-right:5px;}#widget-collapscat-24-top span.collapsing.categories{border:0;padding:0;margin:0;cursor:pointer;}#widget-collapscat-24-top li.widget_collapscat h2 span.sym{float:right;padding:0 .5em}#widget-collapscat-24-top li.collapsing.categories.self a{font-weight:bold}#widget-collapscat-24-top:before{content:'';}#widget-collapscat-24-top li.collapsing.categories:before{content:'';}#widget-collapscat-24-top li.collapsing.categories{list-style-type:none}#widget-collapscat-24-top li.collapsing.categories{padding:0 0 0 1em;text-indent:-1em;}#widget-collapscat-24-top li.collapsing.categories.item:before{content:'\00BB \00A0'!important;}#widget-collapscat-24-top li.collapsing.categories .sym{cursor:pointer;font-size:1.1em;font-family:Arial,Helvetica;padding-right:5px;}#widget-collapscat-25-top span.collapsing.categories{border:0;padding:0;margin:0;cursor:pointer;}#widget-collapscat-25-top li.widget_collapscat h2 span.sym{float:right;padding:0 .5em}#widget-collapscat-25-top li.collapsing.categories.self a{font-weight:bold}#widget-collapscat-25-top:before{content:'';}#widget-collapscat-25-top li.collapsing.categories:before{content:'';}#widget-collapscat-25-top li.collapsing.categories{list-style-type:none}#widget-collapscat-25-top li.collapsing.categories{padding:0 0 0 1em;text-indent:-1em;}#widget-collapscat-25-top li.collapsing.categories.item:before{content:'\00BB \00A0'!important;}#widget-collapscat-25-top li.collapsing.categories .sym{cursor:pointer;font-size:1.1em;font-family:Arial,Helvetica;padding-right:5px;}#widget-collapscat-26-top span.collapsing.categories{border:0;padding:0;margin:0;cursor:pointer;}#widget-collapscat-26-top li.widget_collapscat h2 span.sym{float:right;padding:0 .5em}#widget-collapscat-26-top li.collapsing.categories.self a{font-weight:bold}#widget-collapscat-26-top:before{content:'';}#widget-collapscat-26-top li.collapsing.categories:before{content:'';}#widget-collapscat-26-top li.collapsing.categories{list-style-type:none}#widget-collapscat-26-top li.collapsing.categories{padding:0 0 0 1em;text-indent:-1em;}#widget-collapscat-26-top li.collapsing.categories.item:before{content:'\00BB \00A0'!important;}#widget-collapscat-26-top li.collapsing.categories .sym{cursor:pointer;font-size:1.1em;font-family:Arial,Helvetica;padding-right:5px;}#widget-collapscat-27-top span.collapsing.categories{border:0;padding:0;margin:0;cursor:pointer;}#widget-collapscat-27-top li.widget_collapscat h2 span.sym{float:right;padding:0 .5em}#widget-collapscat-27-top li.collapsing.categories.self a{font-weight:bold}#widget-collapscat-27-top:before{content:'';}#widget-collapscat-27-top li.collapsing.categories:before{content:'';}#widget-collapscat-27-top li.collapsing.categories{list-style-type:none}#widget-collapscat-27-top li.collapsing.categories{padding:0 0 0 1em;text-indent:-1em;}#widget-collapscat-27-top li.collapsing.categories.item:before{content:'\00BB \00A0'!important;}#widget-collapscat-27-top li.collapsing.categories .sym{cursor:pointer;font-size:1.1em;font-family:Arial,Helvetica;padding-right:5px;}#widget-collapscat-28-top span.collapsing.categories{border:0;padding:0;margin:0;cursor:pointer;}#widget-collapscat-28-top li.widget_collapscat h2 span.sym{float:right;padding:0 .5em}#widget-collapscat-28-top li.collapsing.categories.self a{font-weight:bold}#widget-collapscat-28-top:before{content:'';}#widget-collapscat-28-top li.collapsing.categories:before{content:'';}#widget-collapscat-28-top li.collapsing.categories{list-style-type:none}#widget-collapscat-28-top li.collapsing.categories{padding:0 0 0 1em;text-indent:-1em;}#widget-collapscat-28-top li.collapsing.categories.item:before{content:'\00BB \00A0'!important;}#widget-collapscat-28-top li.collapsing.categories .sym{cursor:pointer;font-size:1.1em;font-family:Arial,Helvetica;padding-right:5px;}#widget-collapscat-29-top span.collapsing.categories{border:0;padding:0;margin:0;cursor:pointer;}#widget-collapscat-29-top li.widget_collapscat h2 span.sym{float:right;padding:0 .5em}#widget-collapscat-29-top li.collapsing.categories.self a{font-weight:bold}#widget-collapscat-29-top:before{content:'';}#widget-collapscat-29-top li.collapsing.categories:before{content:'';}#widget-collapscat-29-top li.collapsing.categories{list-style-type:none}#widget-collapscat-29-top li.collapsing.categories{padding:0 0 0 1em;text-indent:-1em;}#widget-collapscat-29-top li.collapsing.categories.item:before{content:'\00BB \00A0'!important;}#widget-collapscat-29-top li.collapsing.categories .sym{cursor:pointer;font-size:1.1em;font-family:Arial,Helvetica;padding-right:5px;}#widget-collapscat-30-top span.collapsing.categories{border:0;padding:0;margin:0;cursor:pointer;}#widget-collapscat-30-top li.widget_collapscat h2 span.sym{float:right;padding:0 .5em}#widget-collapscat-30-top li.collapsing.categories.self a{font-weight:bold}#widget-collapscat-30-top:before{content:'';}#widget-collapscat-30-top li.collapsing.categories:before{content:'';}#widget-collapscat-30-top li.collapsing.categories{list-style-type:none}#widget-collapscat-30-top li.collapsing.categories{padding:0 0 0 1em;text-indent:-1em;}#widget-collapscat-30-top li.collapsing.categories.item:before{content:'\00BB \00A0'!important;}#widget-collapscat-30-top li.collapsing.categories .sym{cursor:pointer;font-size:1.1em;font-family:Arial,Helvetica;padding-right:5px;}#widget-collapscat-31-top span.collapsing.categories{border:0;padding:0;margin:0;cursor:pointer;}#widget-collapscat-31-top li.widget_collapscat h2 span.sym{float:right;padding:0 .5em}#widget-collapscat-31-top li.collapsing.categories.self a{font-weight:bold}#widget-collapscat-31-top:before{content:'';}#widget-collapscat-31-top li.collapsing.categories:before{content:'';}#widget-collapscat-31-top li.collapsing.categories{list-style-type:none}#widget-collapscat-31-top li.collapsing.categories{padding:0 0 0 1em;text-indent:-1em;}#widget-collapscat-31-top li.collapsing.categories.item:before{content:'\00BB \00A0'!important;}#widget-collapscat-31-top li.collapsing.categories .sym{cursor:pointer;font-size:1.1em;font-family:Arial,Helvetica;padding-right:5px;}#widget-collapscat-32-top span.collapsing.categories{border:0;padding:0;margin:0;cursor:pointer;}#widget-collapscat-32-top li.widget_collapscat h2 span.sym{float:right;padding:0 .5em}#widget-collapscat-32-top li.collapsing.categories.self a{font-weight:bold}#widget-collapscat-32-top:before{content:'';}#widget-collapscat-32-top li.collapsing.categories:before{content:'';}#widget-collapscat-32-top li.collapsing.categories{list-style-type:none}#widget-collapscat-32-top li.collapsing.categories{padding:0 0 0 1em;text-indent:-1em;}#widget-collapscat-32-top li.collapsing.categories.item:before{content:'\00BB \00A0'!important;}#widget-collapscat-32-top li.collapsing.categories .sym{cursor:pointer;font-size:1.1em;font-family:Arial,Helvetica;padding-right:5px;}#widget-collapscat-33-top span.collapsing.categories{border:0;padding:0;margin:0;cursor:pointer;}#widget-collapscat-33-top li.widget_collapscat h2 span.sym{float:right;padding:0 .5em}#widget-collapscat-33-top li.collapsing.categories.self a{font-weight:bold}#widget-collapscat-33-top:before{content:'';}#widget-collapscat-33-top li.collapsing.categories:before{content:'';}#widget-collapscat-33-top li.collapsing.categories{list-style-type:none}#widget-collapscat-33-top li.collapsing.categories{padding:0 0 0 1em;text-indent:-1em;}#widget-collapscat-33-top li.collapsing.categories.item:before{content:'\00BB \00A0'!important;}#widget-collapscat-33-top li.collapsing.categories .sym{cursor:pointer;font-size:1.1em;font-family:Arial,Helvetica;padding-right:5px;}#widget-collapscat-34-top span.collapsing.categories{border:0;padding:0;margin:0;cursor:pointer;}#widget-collapscat-34-top li.widget_collapscat h2 span.sym{float:right;padding:0 .5em}#widget-collapscat-34-top li.collapsing.categories.self a{font-weight:bold}#widget-collapscat-34-top:before{content:'';}#widget-collapscat-34-top li.collapsing.categories:before{content:'';}#widget-collapscat-34-top li.collapsing.categories{list-style-type:none}#widget-collapscat-34-top li.collapsing.categories{padding:0 0 0 1em;text-indent:-1em;}#widget-collapscat-34-top li.collapsing.categories.item:before{content:'\00BB \00A0'!important;}#widget-collapscat-34-top li.collapsing.categories .sym{cursor:pointer;font-size:1.1em;font-family:Arial,Helvetica;padding-right:5px;}#widget-collapscat-35-top span.collapsing.categories{border:0;padding:0;margin:0;cursor:pointer;}#widget-collapscat-35-top li.widget_collapscat h2 span.sym{float:right;padding:0 .5em}#widget-collapscat-35-top li.collapsing.categories.self a{font-weight:bold}#widget-collapscat-35-top:before{content:'';}#widget-collapscat-35-top li.collapsing.categories:before{content:'';}#widget-collapscat-35-top li.collapsing.categories{list-style-type:none}#widget-collapscat-35-top li.collapsing.categories{padding:0 0 0 1em;text-indent:-1em;}#widget-collapscat-35-top li.collapsing.categories.item:before{content:'\00BB \00A0'!important;}#widget-collapscat-35-top li.collapsing.categories .sym{cursor:pointer;font-size:1.1em;font-family:Arial,Helvetica;padding-right:5px;}#widget-collapscat-36-top span.collapsing.categories{border:0;padding:0;margin:0;cursor:pointer;}#widget-collapscat-36-top li.widget_collapscat h2 span.sym{float:right;padding:0 .5em}#widget-collapscat-36-top li.collapsing.categories.self a{font-weight:bold}#widget-collapscat-36-top:before{content:'';}#widget-collapscat-36-top li.collapsing.categories:before{content:'';}#widget-collapscat-36-top li.collapsing.categories{list-style-type:none}#widget-collapscat-36-top li.collapsing.categories{padding:0 0 0 1em;text-indent:-1em;}#widget-collapscat-36-top li.collapsing.categories.item:before{content:'\00BB \00A0'!important;}#widget-collapscat-36-top li.collapsing.categories .sym{cursor:pointer;font-size:1.1em;font-family:Arial,Helvetica;padding-right:5px;}#widget-collapscat-37-top span.collapsing.categories{border:0;padding:0;margin:0;cursor:pointer;}#widget-collapscat-37-top li.widget_collapscat h2 span.sym{float:right;padding:0 .5em}#widget-collapscat-37-top li.collapsing.categories.self a{font-weight:bold}#widget-collapscat-37-top:before{content:'';}#widget-collapscat-37-top li.collapsing.categories:before{content:'';}#widget-collapscat-37-top li.collapsing.categories{list-style-type:none}#widget-collapscat-37-top li.collapsing.categories{padding:0 0 0 1em;text-indent:-1em;}#widget-collapscat-37-top li.collapsing.categories.item:before{content:'\00BB \00A0'!important;}#widget-collapscat-37-top li.collapsing.categories .sym{cursor:pointer;font-size:1.1em;font-family:Arial,Helvetica;padding-right:5px;}#widget-collapscat-38-top span.collapsing.categories{border:0;padding:0;margin:0;cursor:pointer;}#widget-collapscat-38-top li.widget_collapscat h2 span.sym{float:right;padding:0 .5em}#widget-collapscat-38-top li.collapsing.categories.self a{font-weight:bold}#widget-collapscat-38-top:before{content:'';}#widget-collapscat-38-top li.collapsing.categories:before{content:'';}#widget-collapscat-38-top li.collapsing.categories{list-style-type:none}#widget-collapscat-38-top li.collapsing.categories{padding:0 0 0 1em;text-indent:-1em;}#widget-collapscat-38-top li.collapsing.categories.item:before{content:'\00BB \00A0'!important;}#widget-collapscat-38-top li.collapsing.categories .sym{cursor:pointer;font-size:1.1em;font-family:Arial,Helvetica;padding-right:5px;}#widget-collapscat-39-top span.collapsing.categories{border:0;padding:0;margin:0;cursor:pointer;}#widget-collapscat-39-top li.widget_collapscat h2 span.sym{float:right;padding:0 .5em}#widget-collapscat-39-top li.collapsing.categories.self a{font-weight:bold}#widget-collapscat-39-top:before{content:'';}#widget-collapscat-39-top li.collapsing.categories:before{content:'';}#widget-collapscat-39-top li.collapsing.categories{list-style-type:none}#widget-collapscat-39-top li.collapsing.categories{padding:0 0 0 1em;text-indent:-1em;}#widget-collapscat-39-top li.collapsing.categories.item:before{content:'\00BB \00A0'!important;}#widget-collapscat-39-top li.collapsing.categories .sym{cursor:pointer;font-size:1.1em;font-family:Arial,Helvetica;padding-right:5px;}#widget-collapscat-40-top span.collapsing.categories{border:0;padding:0;margin:0;cursor:pointer;}#widget-collapscat-40-top li.widget_collapscat h2 span.sym{float:right;padding:0 .5em}#widget-collapscat-40-top li.collapsing.categories.self a{font-weight:bold}#widget-collapscat-40-top:before{content:'';}#widget-collapscat-40-top li.collapsing.categories:before{content:'';}#widget-collapscat-40-top li.collapsing.categories{list-style-type:none}#widget-collapscat-40-top li.collapsing.categories{padding:0 0 0 1em;text-indent:-1em;}#widget-collapscat-40-top li.collapsing.categories.item:before{content:'\00BB \00A0'!important;}#widget-collapscat-40-top li.collapsing.categories .sym{cursor:pointer;font-size:1.1em;font-family:Arial,Helvetica;padding-right:5px;}#widget-collapscat-41-top span.collapsing.categories{border:0;padding:0;margin:0;cursor:pointer;}#widget-collapscat-41-top li.widget_collapscat h2 span.sym{float:right;padding:0 .5em}#widget-collapscat-41-top li.collapsing.categories.self a{font-weight:bold}#widget-collapscat-41-top:before{content:'';}#widget-collapscat-41-top li.collapsing.categories:before{content:'';}#widget-collapscat-41-top li.collapsing.categories{list-style-type:none}#widget-collapscat-41-top li.collapsing.categories{padding:0 0 0 1em;text-indent:-1em;}#widget-collapscat-41-top li.collapsing.categories.item:before{content:'\00BB \00A0'!important;}#widget-collapscat-41-top li.collapsing.categories .sym{cursor:pointer;font-size:1.1em;font-family:Arial,Helvetica;padding-right:5px;}</style> <link rel="Shortcut Icon" href="http://www.whatismyip.com/images/favicon.ico" type="image/x-icon"/> <style type="text/css">.site-header .title-area{background:url(http://test.whatismyip.com/wp-content/uploads/wimi-logo.png) no-repeat!important;}</style> <!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]--> <script type="text/rocketscript">if (top.location!= self.location) {top.location = self.location.href;}</script> <meta property="og:site_name" content="What Is My IP ®"> <meta property="og:type" content="website"> <meta property="og:locale" content="en_US"> <meta property="og:title" content="What Is My IP - The IP Address Experts Since 1999"> <meta property="og:description" content="Lookup, Trace, Locate, Change, Hide ANY IP Address"> <meta property="og:url" content="http://www.whatismyip.com"> </head> <body class="home page page-id-68 page-template page-template-wimi-homepage-php custom-header header-image sidebar-content-sidebar custom-home" itemscope="itemscope" itemtype="http://schema.org/WebPage"><script type="text/rocketscript"> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-4975660-1', 'whatismyip.com'); ga('require', 'displayfeatures'); ga('send', 'pageview'); </script> <script data-rocketsrc="//connect.facebook.net/en_US/all.js" type="text/rocketscript"></script> <div id="fb-root"></div> <script type="text/rocketscript"> FB.init({ appId : '434093880018970', status: true, // check login status cookie: true, // enable cookies to allow server to access session, xfbml: true, // enable XFBML and social plugins oauth: true, // enable OAuth 2.0 channelUrl: 'http://www.whatismyip.com/channel.php' //custom channel }); </script><div class="site-container"><header class="site-header" role="banner" itemscope="itemscope" itemtype="http://schema.org/WPHeader"><div class="wrap"><div class="title-area"><p class="site-title" itemprop="headline"><a href="http://www.whatismyip.com/" title="What Is My IP ®">What Is My IP ®</a></p></div><aside class="widget-area header-widget-area"><section id="text-38" class="widget widget_text"><div class="widget-wrap"> <div class="textwidget"><div class="social-float-right"> <a target="_blank" href="https://www.facebook.com/whatismyip"><img data-cfstyle="display: inline; margin: 0 5px;" title="facebook" style="display:none;visibility:hidden;" data-cfsrc="/images/facebook-icon.png" alt="What Is My IP on Facebook" width="36" height="36"/><noscript><img style="display: inline; margin: 0 5px;" title="facebook" src="/images/facebook-icon.png" alt="What Is My IP on Facebook" width="36" height="36"/></noscript></a> <a target="_blank" href="https://www.twitter.com/whatismyip"><img data-cfstyle="display: inline; margin: 0 5px;" title="twitter" style="display:none;visibility:hidden;" data-cfsrc="/images/twitter-icon.png" alt="What Is My IP on Twitter" width="36" height="36"/><noscript><img style="display: inline; margin: 0 5px;" title="twitter" src="/images/twitter-icon.png" alt="What Is My IP on Twitter" width="36" height="36"/></noscript></a> <a target="_blank" href="https://plus.google.com/+whatismyip/"><img data-cfstyle="display: inline; margin: 0 5px;" title="google plus" style="display:none;visibility:hidden;" data-cfsrc="/images/gplus-icon.png" alt="What Is My IP on Google Plus" width="36" height="36"/><noscript><img style="display: inline; margin: 0 5px;" title="google plus" src="/images/gplus-icon.png" alt="What Is My IP on Google Plus" width="36" height="36"/></noscript></a> </div></div> </div></section><section id="text-25" class="widget widget_text"><div class="widget-wrap"> <div class="textwidget"> <select name="tool" id="tool" class="postform"> <option class="level-0" value="-1">Site Navigation</option> <option class="level-0" value="/wp-login.php">Log In</option> <option class="level-0" value="-2">Forum</option> <option class="level-0" value="/ip-tools/">IP Tools</option><option class="level-0" value="/change-subscription/">-Change Subscription</option><option class="level-0" value="/internet-speed-test/">-Internet Speed Test </option><option class="level-0" value="/ip-address-lookup/">-IP Address Lookup</option><option class="level-0" value="/ip-whois-lookup/">-IP WHOIS Lookup</option><option class="level-0" value="/ip-address-host-name-lookup/">-IP Address Hostname Lookup</option><option class="level-0" value="/server-headers-check/">-Server Headers Check</option><option class="level-0" value="/blacklist-check/">-Blacklist Check</option><option class="level-0" value="/traceroute/">-Traceroute</option><option class="level-0" value="/user-agent-info/">-User Agent Info</option> <option class="level-0" value="/how-to/">How To</option> <option class="level-0" value="/how-to/change-my-ip/">-Change My IP</option><option class="level-0" value="/how-to/dvr-security-cameras/">-DVR / Security Cameras</option><option class="level-0" value="/how-to/email/">-Email</option><option class="level-0" value="/how-to/general-ip-info/">-General IP Info</option><option class="level-0" value="/how-to/hide-my-ip/">-Hide My IP</option><option class="level-0" value="/how-to/internet-security/">-Internet Security</option><option class="level-0" value="/how-to/ip-commands/">-IP Commands</option><option class="level-0" value="/how-to/malware-virus/">-Malware / Virus</option><option class="level-0" value="/how-to/most-popular/">-Most Popular</option><option class="level-0" value="/how-to/pc-help/">-PC Help</option><option class="level-0" value="/how-to/port-forwarding/">-Port Forwarding</option><option class="level-0" value="/how-to/routers/">-Routers</option><option class="level-0" value="/how-to/wireless-security/">-Wireless Security</option></select> <script type="text/rocketscript"> /* <![CDATA[ */ var dropdown1 = document.getElementById("tool"); function onToolItemChange() { if ( dropdown1.options[dropdown1.selectedIndex].value == -2 ) { location.href = "http://forum.whatismyip.com"; } else if ( dropdown1.options[dropdown1.selectedIndex].value != -1 ) { location.href = "http://www.whatismyip.com"+dropdown1.options[dropdown1.selectedIndex].value; } } dropdown1.onchange = onToolItemChange; /* ]]> */ </script></div> </div></section></aside></div></header><div class="site-inner"><div class="wrap"><div class="content-sidebar-wrap"><div id="ip-box"> <div class="center-ip"><div class="ip">Your IP:</div><div class="the-ip"><span id="g544774">3</span><span id="e550877">7</span><span id="a484147">.</span><span id="b527239">1</span><span id="f514529">9</span><span id="f445929">0</span><label id="d147417">.</label><span id="c579921">5</span><span id="a819192">7</span><span id="e563213">.</span><span id="b545150">5</span></div> <div class="ip-box-menu-pop"> <ul class="ip-box-menu-pop"> <li><a href="/internet-speed-test/?iref=cta">Speed Test</a></li> <li><a href="/ip-address-lookup/?iref=cta">IP Lookup</a></li> <li><a href="/how-to-change-your-ip-address/?iref=cta">Change IP</a></li> <li><a href="/hide-my-ip-address/?iref=cta">Hide IP</a></li> </ul> </div></div> <div class="ip-box-left"> <div class="proxy">Proxy:</div><div class="the-proxy">No Proxy Detected</div> <div class="city">City:</div><div class="the-city">druzhba</div> <div class="state">State/Region:</div> <div class="the-state">moskva</div> <div class="country">Country:</div><div class="the-country">ru - <img style="display:none;visibility:hidden;" data-cfsrc="../images/flags/ru.png" height="2" width="16" alt="ru flag"/><noscript><img src="../images/flags/ru.png" height="2" width="16" alt="ru flag"/></noscript></div> <div class="isp">ISP:</div><div class="the-isp">ojs moscow city telephone network</div> </div> <div class="ip-box-right"><div class="ip-box-ad"> <style scoped>.whatismyipcom-home-ip-box-r{width:125px;height:125px;}@media(min-width: 320px) { .whatismyipcom-home-ip-box-r{ width: 125px; height: 125px; } } @media(min-width: 480px) { .whatismyipcom-home-ip-box-r{ width: 120px; height: 240px; } } @media(min-width: 768px) { .whatismyipcom-home-ip-box-r{ width: 300px; height: 250px; } } @media(min-width: 1024px) { .whatismyipcom-home-ip-box-r{ width: 200px; height: 200px; } } @media(min-width: 1025px) { .whatismyipcom-home-ip-box-r{ width: 336px; height: 280px; } } </style> <script async data-rocketsrc="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js" type="text/rocketscript" ></script> <!-- WhatIsMyIp.com_Home_IP_Box_R --> <ins class="adsbygoogle whatismyipcom-home-ip-box-r" style="display:inline-block" data-ad-client="ca-pub-5816606651381080" data-ad-slot="8204920996"></ins> <script type="text/rocketscript" > (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </div> </div> <div class="before-content-ad"> <style scoped>.whatismyipcom-home-c-t { width:234px; height: 60px; } @media(min-width: 320px) { .whatismyipcom-home-c-t { width:234px; height: 60px; } } @media(min-width: 480px) { .whatismyipcom-home-c-t { width:320px; height: 50px; } } @media(min-width: 768px) { .whatismyipcom-home-c-t { width:728px; height: 90px; } } @media(min-width: 1024px) { .whatismyipcom-home-c-t { width:468px; height: 60px; } } @media(min-width: 1025px) { .whatismyipcom-home-c-t { width:728px; height: 90px; } }</style> <script async data-rocketsrc="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js" type="text/rocketscript" ></script> <!-- WhatIsMyIP.com_Home_C_T --> <ins class="adsbygoogle whatismyipcom-home-c-t" style="display:inline-block" data-ad-client="ca-pub-5816606651381080" data-ad-slot="5391055391"></ins> <script type="text/rocketscript" > (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div><main class="content" role="main" itemprop="mainContentOfPage"><article class="post-68 page type-page status-publish entry genesis-feature genesis-feature-1 genesis-feature-odd" itemscope="itemscope" itemtype="http://schema.org/CreativeWork"><header class="entry-header"></header><div class="entry-content" itemprop="text"><h1>What Is My IP?</h1> <p>This website is dedicated to helping users across the world not only locate their IP address, but perform an <a title="IP Address Lookup" href="/ip-address-lookup/?iref=c1">IP address lookup</a>, learn how to trace email, and learn how to change IP address. Learning your own IP address is crucial for online gaming, tech support, using remote desktop connections, detecting proxies or even running an email server. We also host a <a title="Whatismyip Forum" href="http://forum.whatismyip.com/?iref=hpc">forum</a> for our users to learn and help others with IP related questions.</p> <p><a class="home_links" title="What Is An IP Address?" href="/what-is-an-ip-address/?iref=c1">What Is An IP Address?</a><br /> An IP address is an exclusive number online devices use to identify and communicate with each other through computer networks. This process can best be compared to how we receive mail to our home address. An IP address would be most similar to a mailing address, while the network would be compared to the town you live in. Just like our home addresses, information cannot be sent or received by devices without a specific address.</p> <p><a class="home_links" title="Internet Speed Test" href="/internet-speed-test/?iref=c1">Internet Speed Test</a><br /> An internet speed test will show you the results of the fastest upload and download burst rates during your internet speed test from your location to the location of the test server you choose. TCP/IP degrades over distance so choose the server closest to you when performing the internet speed test.</p> <p><a class="home_links" title="IP Address Lookup" href="/ip-address-lookup/?iref=c2">IP Address Lookup</a><br /> The IP Address Lookup tool also referred to as IP Lookup, Lookup IP, Lookup IP Address, IP Address Location, IP Location, and IP Locator is designed to give you an idea of where your IP Address or the IP Address you lookup is located.</p> <div class="fb-social-plugin fb-like" data-ref="below-post" data-href="http://www.whatismyip.com/" data-layout="button_count" data-share="true" data-width="450"></div> </div></article></main><aside class="sidebar sidebar-primary widget-area" role="complementary" itemscope="itemscope" itemtype="http://schema.org/WPSideBar"><section id="text-26" class="widget widget_text"><div class="widget-wrap"> <div class="textwidget"></div> </div></section> <section id="search-4" class="widget widget_search"><div class="widget-wrap"><form method="get" class="search-form" action="http://www.whatismyip.com/" role="search"><input type="search" name="s" placeholder="Search this website…" /><input type="submit" value="Search" /></form></div></section> <section id="text-8" class="widget widget_text"><div class="widget-wrap"> <div class="textwidget"><div class="fb-like-box" data-href="http://www.facebook.com/whatismyip" data-width="160" data-height="300" data-colorscheme="light" data-show-faces="true" data-header="true" data-stream="false" data-show-border="true"></div></div> </div></section> <section id="text-42" class="widget widget_text"><div class="widget-wrap"> <div class="textwidget"><div class="g-plusone" data-size="medium" data-annotation="inline" data-width="180"></div></div> </div></section> <section id="text-41" class="widget widget_text"><div class="widget-wrap"> <div class="textwidget"><a class="twitter-timeline" href="https://twitter.com/whatismyip" data-widget-id="435803003145031680">Tweets by @whatismyip</a> <script type="text/rocketscript" >!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> </div> </div></section> <section id="text-36" class="widget widget_text"><div class="widget-wrap"> <div class="textwidget"><div class="social-float-right"> <a target="_blank" href="https://www.facebook.com/whatismyip"><img data-cfstyle="display: inline; margin: 0 5px;" title="facebook" style="display:none;visibility:hidden;" data-cfsrc="/images/facebook-icon.png" alt="What Is My IP on Facebook" width="36" height="36" /><noscript><img style="display: inline; margin: 0 5px;" title="facebook" src="/images/facebook-icon.png" alt="What Is My IP on Facebook" width="36" height="36" /></noscript></a> <a target="_blank" href="https://www.twitter.com/whatismyip"><img data-cfstyle="display: inline; margin: 0 5px;" title="twitter" style="display:none;visibility:hidden;" data-cfsrc="/images/twitter-icon.png" alt="What Is My IP on Twitter" width="36" height="36" /><noscript><img style="display: inline; margin: 0 5px;" title="twitter" src="/images/twitter-icon.png" alt="What Is My IP on Twitter" width="36" height="36" /></noscript></a> <a target="_blank" href="https://plus.google.com/+whatismyip/"><img data-cfstyle="display: inline; margin: 0 5px;" title="google plus" style="display:none;visibility:hidden;" data-cfsrc="/images/gplus-icon.png" alt="What Is My IP on Google Plus" width="36" height="36" /><noscript><img style="display: inline; margin: 0 5px;" title="google plus" src="/images/gplus-icon.png" alt="What Is My IP on Google Plus" width="36" height="36" /></noscript></a> </div></div> </div></section> </aside></div><aside class="sidebar sidebar-secondary widget-area" role="complementary" itemscope="itemscope" itemtype="http://schema.org/WPSideBar"><section id="text-2" class="widget widget_text"><div class="widget-wrap"> <div class="textwidget"><div class="logo"><a href="/"><img style="display:none;visibility:hidden;" data-cfsrc="/images/WhatIsMyIP.png" width="205" height="61" alt="WhatIsMyIP.com | The IP Address Experts Since 1999"><noscript><img src="/images/WhatIsMyIP.png" width="205" height="61" alt="WhatIsMyIP.com | The IP Address Experts Since 1999"></noscript></a><div class="tagline">The IP Address Experts Since 1999</div></div></div> </div></section> <section id="text-27" class="widget widget_text"><div class="widget-wrap"> <div class="textwidget"><div class="user-menu-items"><ul class="user-menu"><li><a href="/wp-login.php" title="Log In" alt="Log In">Log In</a></ul></li> </div></div> </div></section> <section id="collapscat-7" class="widget widget_collapscat"><div class="widget-wrap"><ul id='widget-collapscat-7-top' class='collapsing categories list'> <li class='collapsing categories expandable parent'><span class='collapsing categories collapse'><span class='sym'>▼</span><a href='http://www.whatismyip.com/tools/' title="View all posts filed under Tools">Tools</a></span> <div id='collapsCat-24:7' style="display:block"> <ul><li class='collapsing categories item'><a href='http://www.whatismyip.com/internet-speed-test/' title='Internet Speed Test '>Internet Speed Test </a></li> <li class='collapsing categories item'><a href='http://www.whatismyip.com/ip-address-lookup/' title='IP Address Lookup'>IP Address Lookup</a></li> <li class='collapsing categories item'><a href='http://www.whatismyip.com/ip-whois-lookup/' title='IP WHOIS Lookup'>IP WHOIS Lookup</a></li> <li class='collapsing categories item'><a href='http://www.whatismyip.com/ip-address-host-name-lookup/' title='IP Address Hostname Lookup'>IP Address Hostname Lookup</a></li> <li class='collapsing categories item'><a href='http://www.whatismyip.com/server-headers-check/' title='Server Headers Check'>Server Headers Check</a></li> <li class='collapsing categories item'><a href='http://www.whatismyip.com/blacklist-check/' title='Blacklist Check'>Blacklist Check</a></li> <li class='collapsing categories item'><a href='http://www.whatismyip.com/traceroute/' title='Traceroute'>Traceroute</a></li> <li class='collapsing categories item'><a href='http://www.whatismyip.com/user-agent-info/' title='User Agent Info'>User Agent Info</a></li> </ul> </div> </li> <!-- ending category --> <li style='display:none'><script type="text/rocketscript"> // <![CDATA[ /* These variables are part of the Collapsing Categories Plugin * Version: 2.0.4 * $Id: collapscat.php 750319 2013-08-02 22:38:14Z robfelty $ * Copyright 2007 Robert Felty (robfelty.com) */ var expandSym='►'; var collapseSym='▼'; try { collapsItems['catTest'] = 'test'; } catch (err) { collapsItems = new Object(); } collapsItems['collapsCat-24:7'] = '<ul><li class=\'collapsing categories item\'><a href=\'http://www.whatismyip.com/internet-speed-test/\' title=\'Internet Speed Test \'>Internet Speed Test </a></li><li class=\'collapsing categories item\'><a href=\'http://www.whatismyip.com/ip-address-lookup/\' title=\'IP Address Lookup\'>IP Address Lookup</a></li><li class=\'collapsing categories item\'><a href=\'http://www.whatismyip.com/ip-whois-lookup/\' title=\'IP WHOIS Lookup\'>IP WHOIS Lookup</a></li><li class=\'collapsing categories item\'><a href=\'http://www.whatismyip.com/ip-address-host-name-lookup/\' title=\'IP Address Hostname Lookup\'>IP Address Hostname Lookup</a></li><li class=\'collapsing categories item\'><a href=\'http://www.whatismyip.com/server-headers-check/\' title=\'Server Headers Check\'>Server Headers Check</a></li><li class=\'collapsing categories item\'><a href=\'http://www.whatismyip.com/blacklist-check/\' title=\'Blacklist Check\'>Blacklist Check</a></li><li class=\'collapsing categories item\'><a href=\'http://www.whatismyip.com/traceroute/\' title=\'Traceroute\'>Traceroute</a></li><li class=\'collapsing categories item\'><a href=\'http://www.whatismyip.com/user-agent-info/\' title=\'User Agent Info\'>User Agent Info</a></li></ul>'; /* Collapse Functions, version 2.0 * *--------------------------------------------------------------------------*/ String.prototype.trim = function() { return this.replace(/^\s+|\s+$/g,""); } function createCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else { var expires = ""; } document.cookie = name+"="+value+expires+"; path=/"; } function readCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') { c = c.substring(1,c.length); } if (c.indexOf(nameEQ) == 0) { return c.substring(nameEQ.length,c.length); } } return null; } function eraseCookie(name) { createCookie(name,"",-1); } function addExpandCollapse(id, expandSym, collapseSym, accordion) { jQuery('#' + id + ' .expand').live('click', function() { if (accordion==1) { var theDiv = jQuery(this).parent().parent().find('span.collapse').parent().find('div'); jQuery(theDiv).hide('normal'); jQuery(this).parent().parent().find('span.collapse').removeClass('collapse').addClass('expand'); createCookie(theDiv.attr('id'), 0, 7); } jQuery('#' + id + ' .expand .sym').html(expandSym); expandCat(this, expandSym, collapseSym); return false; }); jQuery('#' + id + ' .collapse').live('click', function() { collapseCat(this, expandSym, collapseSym); return false; }); } function expandCat(symbol, expandSym, collapseSym) { var theDiv = jQuery(symbol).parent().find('div'); jQuery(theDiv).html(collapsItems[jQuery(theDiv).attr('id')]).show('normal'); jQuery(symbol).removeClass('expand').addClass('collapse'); jQuery(symbol).find('.sym').html(collapseSym); createCookie(theDiv.attr('id'), 1, 7); } function collapseCat(symbol, expandSym, collapseSym) { var theDiv = jQuery(symbol).parent().find('div'); jQuery(theDiv).hide('normal'); jQuery(symbol).removeClass('collapse').addClass('expand'); jQuery(symbol).find('.sym').html(expandSym); createCookie(theDiv.attr('id'), 0, 7); } addExpandCollapse('widget-collapscat-7-top','►', '▼', 0)// ]]> </script></li> </ul> </div></section> <section id="collapscat-8" class="widget widget_collapscat"><div class="widget-wrap"><ul id='widget-collapscat-8-top' class='collapsing categories list'> <li class='collapsing categories expandable'><span class='collapsing categories expand'><span class='sym'>►</span><a href='http://www.whatismyip.com/how-to/' title="View all posts filed under How To">How To</a></span> <div id='collapsCat-3:8' style="display:none"> <ul><li class='collapsing categories item'><a href='http://www.whatismyip.com/how-to/change-my-ip/' title="View all posts filed under Change My IP">Change My IP</a> </li> <!-- ending subcategory --> <li class='collapsing categories item'><a href='http://www.whatismyip.com/how-to/dvr-security-cameras/' title="View all posts filed under DVR / Security Cameras">DVR / Security Cameras</a> </li> <!-- ending subcategory --> <li class='collapsing categories item'><a href='http://www.whatismyip.com/how-to/email/' title="View all posts filed under Email">Email</a> </li> <!-- ending subcategory --> <li class='collapsing categories item'><a href='http://www.whatismyip.com/how-to/general-ip-info/' title="View all posts filed under General IP Info">General IP Info</a> </li> <!-- ending subcategory --> <li class='collapsing categories item'><a href='http://www.whatismyip.com/how-to/hide-my-ip/' title="View all posts filed under Hide My IP">Hide My IP</a> </li> <!-- ending subcategory --> <li class='collapsing categories item'><a href='http://www.whatismyip.com/how-to/internet-security/' title="View all posts filed under Internet Security">Internet Security</a> </li> <!-- ending subcategory --> <li class='collapsing categories item'><a href='http://www.whatismyip.com/how-to/ip-commands/' title="View all posts filed under IP Commands">IP Commands</a> </li> <!-- ending subcategory --> <li class='collapsing categories item'><a href='http://www.whatismyip.com/how-to/malware-virus/' title="View all posts filed under Malware / Virus">Malware / Virus</a> </li> <!-- ending subcategory --> <li class='collapsing categories item'><a href='http://www.whatismyip.com/how-to/pc-help/' title="View all posts filed under PC Help">PC Help</a> </li> <!-- ending subcategory --> <li class='collapsing categories item'><a href='http://www.whatismyip.com/how-to/port-forwarding/' title="View all posts filed under Port Forwarding">Port Forwarding</a> </li> <!-- ending subcategory --> <li class='collapsing categories item'><a href='http://www.whatismyip.com/how-to/routers/' title="View all posts filed under Routers">Routers</a> </li> <!-- ending subcategory --> <li class='collapsing categories item'><a href='http://www.whatismyip.com/how-to/wireless-security/' title="View all posts filed under Wireless Security">Wireless Security</a> </li> <!-- ending subcategory --> </ul> </div> </li> <!-- ending category --> <li class='collapsing categories expandable'><span class='collapsing categories expand'><span class='sym'>►</span><a href='http://www.whatismyip.com/resources/' title="View all posts filed under Resources">Resources</a></span> <div id='collapsCat-41:8' style="display:none"> <ul><li class='collapsing categories item'><a href='http://www.whatismyip.com/resources/scripts/' title="View all posts filed under Scripts">Scripts</a> </li> <!-- ending subcategory --> </ul> </div> </li> <!-- ending category --> <li style='display:none'><script type="text/rocketscript"> // <![CDATA[ /* These variables are part of the Collapsing Categories Plugin * Version: 2.0.4 * $Id: collapscat.php 750319 2013-08-02 22:38:14Z robfelty $ * Copyright 2007 Robert Felty (robfelty.com) */ var expandSym='►'; var collapseSym='▼'; try { collapsItems['catTest'] = 'test'; } catch (err) { collapsItems = new Object(); } collapsItems['collapsCat-24:7'] = '<ul><li class=\'collapsing categories item\'><a href=\'http://www.whatismyip.com/internet-speed-test/\' title=\'Internet Speed Test \'>Internet Speed Test </a></li><li class=\'collapsing categories item\'><a href=\'http://www.whatismyip.com/ip-address-lookup/\' title=\'IP Address Lookup\'>IP Address Lookup</a></li><li class=\'collapsing categories item\'><a href=\'http://www.whatismyip.com/ip-whois-lookup/\' title=\'IP WHOIS Lookup\'>IP WHOIS Lookup</a></li><li class=\'collapsing categories item\'><a href=\'http://www.whatismyip.com/ip-address-host-name-lookup/\' title=\'IP Address Hostname Lookup\'>IP Address Hostname Lookup</a></li><li class=\'collapsing categories item\'><a href=\'http://www.whatismyip.com/server-headers-check/\' title=\'Server Headers Check\'>Server Headers Check</a></li><li class=\'collapsing categories item\'><a href=\'http://www.whatismyip.com/blacklist-check/\' title=\'Blacklist Check\'>Blacklist Check</a></li><li class=\'collapsing categories item\'><a href=\'http://www.whatismyip.com/traceroute/\' title=\'Traceroute\'>Traceroute</a></li><li class=\'collapsing categories item\'><a href=\'http://www.whatismyip.com/user-agent-info/\' title=\'User Agent Info\'>User Agent Info</a></li></ul>'; collapsItems['collapsCat-12:8'] = '<ul></ul>'; collapsItems['collapsCat-6:8'] = '<ul></ul>'; collapsItems['collapsCat-10:8'] = '<ul></ul>'; collapsItems['collapsCat-13:8'] = '<ul></ul>'; collapsItems['collapsCat-2:8'] = '<ul></ul>'; collapsItems['collapsCat-9:8'] = '<ul></ul>'; collapsItems['collapsCat-15:8'] = '<ul></ul>'; collapsItems['collapsCat-11:8'] = '<ul></ul>'; collapsItems['collapsCat-25:8'] = '<ul></ul>'; collapsItems['collapsCat-5:8'] = '<ul></ul>'; collapsItems['collapsCat-4:8'] = '<ul></ul>'; collapsItems['collapsCat-8:8'] = '<ul></ul>'; collapsItems['collapsCat-3:8'] = '<ul><li class=\'collapsing categories item\'><a href=\'http://www.whatismyip.com/how-to/change-my-ip/\' title=\"View all posts filed under Change My IP\">Change My IP</a> </li> <!-- ending subcategory --><li class=\'collapsing categories item\'><a href=\'http://www.whatismyip.com/how-to/dvr-security-cameras/\' title=\"View all posts filed under DVR / Security Cameras\">DVR / Security Cameras</a> </li> <!-- ending subcategory --><li class=\'collapsing categories item\'><a href=\'http://www.whatismyip.com/how-to/email/\' title=\"View all posts filed under Email\">Email</a> </li> <!-- ending subcategory --><li class=\'collapsing categories item\'><a href=\'http://www.whatismyip.com/how-to/general-ip-info/\' title=\"View all posts filed under General IP Info\">General IP Info</a> </li> <!-- ending subcategory --><li class=\'collapsing categories item\'><a href=\'http://www.whatismyip.com/how-to/hide-my-ip/\' title=\"View all posts filed under Hide My IP\">Hide My IP</a> </li> <!-- ending subcategory --><li class=\'collapsing categories item\'><a href=\'http://www.whatismyip.com/how-to/internet-security/\' title=\"View all posts filed under Internet Security\">Internet Security</a> </li> <!-- ending subcategory --><li class=\'collapsing categories item\'><a href=\'http://www.whatismyip.com/how-to/ip-commands/\' title=\"View all posts filed under IP Commands\">IP Commands</a> </li> <!-- ending subcategory --><li class=\'collapsing categories item\'><a href=\'http://www.whatismyip.com/how-to/malware-virus/\' title=\"View all posts filed under Malware / Virus\">Malware / Virus</a> </li> <!-- ending subcategory --><li class=\'collapsing categories item\'><a href=\'http://www.whatismyip.com/how-to/pc-help/\' title=\"View all posts filed under PC Help\">PC Help</a> </li> <!-- ending subcategory --><li class=\'collapsing categories item\'><a href=\'http://www.whatismyip.com/how-to/port-forwarding/\' title=\"View all posts filed under Port Forwarding\">Port Forwarding</a> </li> <!-- ending subcategory --><li class=\'collapsing categories item\'><a href=\'http://www.whatismyip.com/how-to/routers/\' title=\"View all posts filed under Routers\">Routers</a> </li> <!-- ending subcategory --><li class=\'collapsing categories item\'><a href=\'http://www.whatismyip.com/how-to/wireless-security/\' title=\"View all posts filed under Wireless Security\">Wireless Security</a> </li> <!-- ending subcategory --></ul>'; collapsItems['collapsCat-42:8'] = '<ul></ul>'; collapsItems['collapsCat-41:8'] = '<ul><li class=\'collapsing categories item\'><a href=\'http://www.whatismyip.com/resources/scripts/\' title=\"View all posts filed under Scripts\">Scripts</a> </li> <!-- ending subcategory --></ul>'; addExpandCollapse('widget-collapscat-8-top','►', '▼', 0)// ]]> </script></li> </ul> </div></section> <section id="text-39" class="widget widget_text"><div class="widget-wrap"> <div class="textwidget"><div class="user-menu-items"> <ul class="user-menu"><li><a href="http://forum.whatismyip.com" title="Forum" alt="Forum">Forum</a></li></ul> </div></div> </div></section> <section id="text-7" class="widget widget_text"><div class="widget-wrap"> <div class="textwidget"><div class="nomargin"> <style> .whatismyipcom-home-sr-t { width: 160px; height: 600px; } @media(min-width: 500px) { .whatismyipcom-home-sr-t { width: 160px; height: 600px; } } @media(min-width: 800px) { .whatismyipcom-home-sr-t { width: 160px; height: 600px; } } </style> <script async data-rocketsrc="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js" type="text/rocketscript" ></script> <!-- WhatIsMyIP.com_Home_SR_T --> <ins class="adsbygoogle whatismyipcom-home-sr-t" style="display:inline-block" data-ad-client="ca-pub-5816606651381080" data-ad-slot="7372159392"></ins> <script type="text/rocketscript" > (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div></div> </div></section> </aside></div></div><footer class="site-footer" role="contentinfo" itemscope="itemscope" itemtype="http://schema.org/WPFooter"><div class="wrap">Copyright © 2014 WhatIsMyIP.com - <a title="Privacy Policy" href="/privacy-policy/">Privacy Policy</a> - <a rel="nofollow" href="/contact-us/">Contact Us</a><br><p>Get IP Geolocation service from <a href="http://www.ip2location.com/?rid=722" rel="nofollow" target="_blank" title="IP2Location">IP2Location.com</a> or <a href="http://www.ipaddresslabs.com/IP-GeoLoc-ip-address-geolocation-locator-lookup-database-software-geography-country-region-state-county-province-city-postal-zip-code-metro-area-code-latitude-longitude@IP-GeoLoc?ref=whatismyip.com" rel="nofollow" target="_blank" title="IPAddressLabs">IPAddressLabs.com</a></p><p> All trademarks and registered trademarks are the property of their respective owners.</p>57 queries in 0.145 seconds.</div></footer></div><script type="text/rocketscript"> (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'http://apis.google.com/js/platform.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })(); </script> <script type='text/rocketscript'> /* <![CDATA[ */ var FB_WP=FB_WP||{};FB_WP.queue={_methods:[],flushed:false,add:function(fn){FB_WP.queue.flushed?fn():FB_WP.queue._methods.push(fn)},flush:function(){for(var fn;fn=FB_WP.queue._methods.shift();){fn()}FB_WP.queue.flushed=true}};window.fbAsyncInit=function(){FB.init({"xfbml":true});if(FB_WP && FB_WP.queue && FB_WP.queue.flush){FB_WP.queue.flush()}} /* ]]> */ </script> <script type="text/rocketscript">(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(d.getElementById(id)){return}js=d.createElement(s);js.id=id;js.src="http:\/\/connect.facebook.net\/en_US\/all.js";fjs.parentNode.insertBefore(js,fjs)}(document,"script","facebook-jssdk"));</script> <div id="fb-root"></div></body> </html>
In [35]:
page.headers.headers
Out[35]:
['Server: cloudflare-nginx\r\n', 'Date: Sun, 25 May 2014 13:28:51 GMT\r\n', 'Content-Type: text/html; charset=UTF-8\r\n', 'Transfer-Encoding: chunked\r\n', 'Connection: close\r\n', 'Set-Cookie: __cfduid=d228513c3d7b8470da03d3e084cb7f4141401024531579; expires=Mon, 23-Dec-2019 23:50:00 GMT; path=/; domain=.whatismyip.com; HttpOnly\r\n', 'X-Powered-By: PHP/5.3.3\r\n', 'X-CF-Powered-By: WP 1.3.14\r\n', 'Expires: Thu, 19 Nov 1981 08:52:00 GMT\r\n', 'Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0\r\n', 'Pragma: no-cache\r\n', 'Set-Cookie: PHPSESSID=ut142lpvl8d761cboi2kfbgil3; path=/\r\n', 'X-Pingback: http://www.whatismyip.com/xmlrpc.php\r\n', 'Link: <http://www.whatismyip.com/>; rel=shortlink\r\n', 'Set-Cookie: home=0; expires=Sun, 25-May-2014 14:28:05 GMT\r\n', 'Vary: Accept-Encoding\r\n', 'CF-RAY: 1302141a57910c11-AMS\r\n']
Итак, мы получили все, что хотели. Но получается все очень громоздко. Нужен "дежурный" код для того, чтобы соединятся с сайтами "по быстрому". И нужны еще средства для просмотра "переговоров" серверов.
Конечно, универсальные средства - это сниффер (Wireshark...), Scrapy telnet...
Но хочется чего-нибудь полегче... Чтобы было встроено в Python... или что-то вроде mechanaze...
Пока не знаю, что хочу..., но скоро сформулирую...
Конечно, универсальные средства - это сниффер (Wireshark...), Scrapy telnet...
Но хочется чего-нибудь полегче... Чтобы было встроено в Python... или что-то вроде mechanaze...
Пока не знаю, что хочу..., но скоро сформулирую...
Посты чуть ниже также могут вас заинтересовать
Комментариев нет:
Отправить комментарий