隐藏来自bot的URL的方法(类似于tripadvisor.com) [英] Method to obscure URL from bots (similar to tripadvisor.com)
本文介绍了隐藏来自bot的URL的方法(类似于tripadvisor.com)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
餐厅网站的网址似乎编码方式无法通过漫游器进行追踪,但是当用户点击时,网址会在新窗口中加载:
The URL to the Restaurant's website seems to be encoded in a way that it is not scrapable by a bot, yet when clicked on by a user, the URL loads in a new window:
网站链接的span标记的来源如下。 tripadvisor如何隐藏/编码URL?是否有复制此类库或具有类似功能的现有库的方法?
The source for the span tag for the 'Website' link is below. How is tripadvisor obscuring/encoding the URL? Is there a way to replicate this or an existing library with similar functionality available?
<span class="taLnk hvrIE6" onclick="ta.trackEventOnPage('AttractionContactInfo', 'Website',
805527, 1); ta.util.cookie.setPIDCookie(15190); ta.call('ta.util.link.targetBlank', event, this
{'aHref':'LqMWJQiMnYeVtIJpEJCIQQoqnQQxGEcQQoqnQQeVtIJpEJCIQQoqnQQeVsSVuWJQzZYUWJQpEcYGII26Xomb
QQoqnQQQQoqnqgoqnQQQQoqnQQQQoqnQQQQoqnqgoqnQQQQoqnQQuuuQQoqnQQQQoqnxioqnQQQQoqnQQGJEEStiCttIiuV
QQoqnQQQQoqnxioqnQQQQoqnQQniaQQoqnQQQQoqnqgoqnQQQQoqnQQWJQzhYXHTHVdnM3XokX3nKJB',
'isAsdf':true})" class="taLnk hvrIE6">Website</span>
推荐答案
按照变更
正常方式 http://www.google.cl
新方式http%3A%2F%2Fwww.google.cl
new way http%3A%2F%2Fwww.google.cl
%3A%2F%2F在页面之前
just put the http%3A%2F%2F before the page
这篇关于隐藏来自bot的URL的方法(类似于tripadvisor.com)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文