I need to hit a website through a state specific IP Address. Any suggestions on how to do this?
我需要通过特定于州的IP地址访问网站。有关如何做到这一点的任何建议?
1 个解决方案
#1
1
(I'm assuming that you are trying to access a website which is distributed across multiple hosts w/ different IP addresses and you want to access a specific one of those hosts)
(我假设您正在尝试访问分布在多个主机上的网站,这些主机具有不同的IP地址,并且您希望访问这些主机中的特定主机)
If you're using Windows 2000, XP, or Vista, it's at %WINDIR%\system32\drivers\etc\hosts (which path usually expands into c:\windows\system32\drivers\etc\hosts) On Unix-ish systems, this would be /etc/hosts
如果您使用的是Windows 2000,XP或Vista,它位于%WINDIR%\ system32 \ drivers \ etc \ hosts(该路径通常扩展为c:\ windows \ system32 \ drivers \ etc \ hosts)在Unix-ish系统上,这将是/ etc / hosts
Insert a line saying something like this:
插入一行代码如下:
10.53.13.144 the-host-to-connect-to.example.com
where the first part is the IP address this host will resolve to, and the part after the space is the host+domain name.
其中第一部分是该主机将解析的IP地址,空格后的部分是主机+域名。
Save the file; some browsers (e.g. Opera, IE) need to be closed and reopened, since they are caching DNS hostnames.
保存文件;某些浏览器(例如Opera,IE)需要关闭并重新打开,因为它们正在缓存DNS主机名。
This example means, that any request to the-host-to-connect-to.example.com will be sent to the host with IP address 10.53.13.144
此示例表示对the-host-to-connect-to.example.com的任何请求都将发送到IP地址为10.53.13.144的主机
#1
1
(I'm assuming that you are trying to access a website which is distributed across multiple hosts w/ different IP addresses and you want to access a specific one of those hosts)
(我假设您正在尝试访问分布在多个主机上的网站,这些主机具有不同的IP地址,并且您希望访问这些主机中的特定主机)
If you're using Windows 2000, XP, or Vista, it's at %WINDIR%\system32\drivers\etc\hosts (which path usually expands into c:\windows\system32\drivers\etc\hosts) On Unix-ish systems, this would be /etc/hosts
如果您使用的是Windows 2000,XP或Vista,它位于%WINDIR%\ system32 \ drivers \ etc \ hosts(该路径通常扩展为c:\ windows \ system32 \ drivers \ etc \ hosts)在Unix-ish系统上,这将是/ etc / hosts
Insert a line saying something like this:
插入一行代码如下:
10.53.13.144 the-host-to-connect-to.example.com
where the first part is the IP address this host will resolve to, and the part after the space is the host+domain name.
其中第一部分是该主机将解析的IP地址,空格后的部分是主机+域名。
Save the file; some browsers (e.g. Opera, IE) need to be closed and reopened, since they are caching DNS hostnames.
保存文件;某些浏览器(例如Opera,IE)需要关闭并重新打开,因为它们正在缓存DNS主机名。
This example means, that any request to the-host-to-connect-to.example.com will be sent to the host with IP address 10.53.13.144
此示例表示对the-host-to-connect-to.example.com的任何请求都将发送到IP地址为10.53.13.144的主机