阿贾克斯生成的内容,抓取和黑上市 [英] Ajax generated content, crawling and black listing
问题描述
我的网站使用AJAX。
My website uses ajax.
我有一个用户列表页,其中列出用户在Ajax表(带分页和更多信息的东西......)。
I've got a user list page which list users in an ajax table (with paging and more information stuff...).
该网页的网址是: /用户列表
The url of this page is : /user-list
用户列表是通过AJAX创建。当用户点击一个用户,他被重定向到一个页面,该页面的网址为:/成员/成员名
User list is created by ajax. When the user click on one user, he is redirected to a page which url is : /member/memberName
所以,我们可以在这里看到,Ajax是用于生成内容,而不是管理导航(#字符)。
So we can see here that ajax is used to generate content and not to manage navigation (with the # character).
我要检测机器人索引所有页面。
I want to detect bot to index all pages.
所以,在阿贾克斯我要显示与分页和凉爽的AJAX effetcs一个Ajax表(详细信息...),当我发现一个机器人我要显示所有用户(无分页)与链接会员页面像这样的:
So, in ajax I want to display an ajax table with paging and cool ajax effetcs (more info...) and when I detect a bot I want to display all users (without paging) with a link to the member page like this :
<a href="/member/john">John</a><a href="/member/bob">Bob</a>...
你觉得我能列入黑名单这种技术?如果你这样想,你能不能请通过将这些干净的网址,并没有重新开发的用户列表(没有Ajax)提供了另一种解决方案呢?
Do you think I can be black listed with this technique ? If you think so, could you please provide an alternative solution by keeping these clean urls and without redeveloping the user-list (without ajax) ?
推荐答案
谷歌支持的规范,使AJAX抓取:
Google support a specification to make AJAX crawlable:
HTTP://$c$c.google.com/网络/ ajaxcrawling /文档/ specification.html
我做了一个实验,它的工作原理:
I did an experiment and it works:
http://seo-website-designer.com/SEO-Ajax-谷歌-解决方案
由于这是一个谷歌的规范,你就不会受到惩罚(除非你滥用它)。
As this is a Google specification, you won't get penalised (unless you abuse it).
话说,只有谷歌支持的时刻(据我所知)。
Saying that, only Google support it at the moment (AFAIK).
另外,我相信下面的渐进增强的概念是一个更好的办法。也就是说,创建工作的HTML网页,然后使JavaScript的提升呢
Also, I believe following the concept of Progressive Enhancement is a better approach. That is, create a working html website then make the JavaScript enhance it
这篇关于阿贾克斯生成的内容,抓取和黑上市的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!