Anyone knows why this url rejects connection requests being sent by a non-browser application (wget,curl, elinks!): http://sube.garanti.com.tr
任何人都知道为什么这个网址拒绝非浏览器应用程序发送的连接请求(wget,curl,elinks!):http://sube.garanti.com.tr
https://sube.garanti.com.tr/isube/login/en
It's my bank account and I'm trying to make my transfers with a script but as you see this super secured servers do not allow me.
这是我的银行帐户,我正在尝试用脚本进行转移但是你看到这个超级安全的服务器不允许我。
Any suggestions?
Azer
5 个解决方案
#1
Well, I've tried doing this:
好吧,我试过这样做:
wget http://sube.garanti.com.tr
which timed-out.
but doing this:
但这样做:
wget https://sube.garanti.com.tr/isube/login/en
gave me website's source. It is frames base and I'm getting the frames definitions.
给了我网站的来源。它是帧基础,我得到帧定义。
The reason for that is probably, that the site is inaccesible through normal (http) connection, you have to use secured one (https).
原因可能是,通过正常(http)连接无法访问该站点,您必须使用安全的(https)。
However, as a rule of thumb, I'd try to set User-Agent: header for any such application, as noted by pjc50.
但是,根据经验,我会尝试为任何此类应用程序设置User-Agent:标头,如pjc50所述。
#2
Try this:
wget --referer="http://www.google.com" --user-agent="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" --header="Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5" --header="Accept-Language: en-us,en;q=0.5" --header="Accept-Encoding: gzip,deflate" --header="Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" --header="Keep-Alive: 300"
This may trick the site into thinking you have a "legitimate" browser
这可能会欺骗网站认为您拥有“合法”浏览器
#3
Maybe it's because you need to login before doing anything at this url?
也许是因为你需要在这个网址上做任何事情之前登录?
You can login into sites by using perl's LWP, for example, by submitting login forms properly.
您可以使用perl的LWP登录网站,例如,通过正确提交登录表单。
P.S. I can't connect to sube.garanti.com.tr with my browser either.
附:我也无法使用我的浏览器连接到sube.garanti.com.tr。
#4
AFAIK wgte, curl opens the site in the server side. So check for your firwall (if any) and see if it is blocked.
AFAIK wgte,curl在服务器端打开该站点。因此,检查您的冷壁(如果有的话)并查看它是否被阻挡。
Also the site can also be blocking incoming requests. Its a banking site and we can expect some security restrictions.
此外,该网站还可以阻止传入的请求。它是一个银行网站,我们可以期待一些安全限制。
#5
Some websites check the User-Agent: header. You might have to configure your downloader to identify itself as "Mozilla" rather than itself.
某些网站会检查User-Agent:标头。您可能必须配置下载程序以将自己标识为“Mozilla”而不是自身。
#1
Well, I've tried doing this:
好吧,我试过这样做:
wget http://sube.garanti.com.tr
which timed-out.
but doing this:
但这样做:
wget https://sube.garanti.com.tr/isube/login/en
gave me website's source. It is frames base and I'm getting the frames definitions.
给了我网站的来源。它是帧基础,我得到帧定义。
The reason for that is probably, that the site is inaccesible through normal (http) connection, you have to use secured one (https).
原因可能是,通过正常(http)连接无法访问该站点,您必须使用安全的(https)。
However, as a rule of thumb, I'd try to set User-Agent: header for any such application, as noted by pjc50.
但是,根据经验,我会尝试为任何此类应用程序设置User-Agent:标头,如pjc50所述。
#2
Try this:
wget --referer="http://www.google.com" --user-agent="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" --header="Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5" --header="Accept-Language: en-us,en;q=0.5" --header="Accept-Encoding: gzip,deflate" --header="Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" --header="Keep-Alive: 300"
This may trick the site into thinking you have a "legitimate" browser
这可能会欺骗网站认为您拥有“合法”浏览器
#3
Maybe it's because you need to login before doing anything at this url?
也许是因为你需要在这个网址上做任何事情之前登录?
You can login into sites by using perl's LWP, for example, by submitting login forms properly.
您可以使用perl的LWP登录网站,例如,通过正确提交登录表单。
P.S. I can't connect to sube.garanti.com.tr with my browser either.
附:我也无法使用我的浏览器连接到sube.garanti.com.tr。
#4
AFAIK wgte, curl opens the site in the server side. So check for your firwall (if any) and see if it is blocked.
AFAIK wgte,curl在服务器端打开该站点。因此,检查您的冷壁(如果有的话)并查看它是否被阻挡。
Also the site can also be blocking incoming requests. Its a banking site and we can expect some security restrictions.
此外,该网站还可以阻止传入的请求。它是一个银行网站,我们可以期待一些安全限制。
#5
Some websites check the User-Agent: header. You might have to configure your downloader to identify itself as "Mozilla" rather than itself.
某些网站会检查User-Agent:标头。您可能必须配置下载程序以将自己标识为“Mozilla”而不是自身。