Tìm kiếm nhanh.......

Thứ Năm, 30 tháng 10, 2014

[Vbulletin] - File robots.txt dành cho forum Vbulletin chuẩn SEO

File robots.txt dành cho forum Vbulletin chuẩn SEO


1. robots.txt : là gì?

Robot.txt là một file chứa các thông tin theo một cấu trúc xác định. Các thông tin này sẽ giới hạn khu vực truy cập của các search engine (vd: google, hoặc yahoo). Các search engine sẽ không đặt index tìm kiếm cho các khu vực giới hạn được ghi nhận trên robot.txt.
File robots.txt dành cho forum VBB
robots.txt dành cho forum VBB

Ví dụ: bạn không muốn các trang login, trang nội bộ, trang diễn đàn xuất hiện trên trang tìm kiếm ở Google, hãy thiết lập nó ở đây.2. Hoạt động như thế nào?

robots.txt hoạt động bằng cách xác định một user-agent và một command cho user-agent này.
Các tham số có trong file robots.txt

User-agent: khai báo tên search engine mà bạn muốn thiết lập khu vực truy cập với nó, vd: Googlebot, Yahoo! Slurp
Disallow: là khu vực mà bạn muốn khoanh vùng không cho phép search engine truy cập.
Crawl-Delay: thông số này xác định thời gian (tính bằng giây) search phải đợi trước khi chuyển sang site tiếp theo. Điều này sẽ có ích để ngăn chặn các search engine load server tùy tiện.
Dấu # được sử dụng trước các dòng cần comment.3. Ví dụ: robots.txt

Cho phép tất cả các search engine có thể spider toàn bộ site:
User-agent: *Disallow:
Chặn tất cả các search engine truy cập cgi-bin
User-agent: *Disallow: /cgi-bin/
Không cho phép Yahoo! Slurp truy cập thư mục admin
User-agent: yahoo! SlurpDisallow: /admin/
Không cho phép tất cả các search engine truy cập vào bất kì khu vực nào:
User-agent: *Disallow: /
2. File robots.txt mẫu sử dụng cho vbulletin:
User-agent: *#Crawl-Delay: 10Disallow: /cgi-bin/Disallow: /forum/ajax.phpDisallow: /forum/cron.phpDisallow: /forum/attachment.phpDisallow: /forum/editpost.phpDisallow: /forum/external.phpDisallow: /forum/faq.phpDisallow: /forum/global.phpDisallow: /forum/image.phpDisallow: /forum/joinrequest.phpDisallow: /forum/login.phpDisallow: /forum/misc.phpDisallow: /forum/moderator.phpDisallow: /forum/newattatchment.phpDisallow: /forum/newreply.phpDisallow: /forum/newthread.phpDisallow: /forum/online.phpDisallow: /forum/payment_gateway.phpDisallow: /forum/payments.phpDisallow: /forum/pdfthread.phpDisallow: /forum/poll.phpDisallow: /forum/postings.phpDisallow: /forum/printthread.phpDisallow: /forum/private.phpDisallow: /forum/profile.phpDisallow: /forum/register.phpDisallow: /forum/report.phpDisallow: /forum/reputation.phpDisallow: /forum/search.phpDisallow: /forum/sendmessage.phpDisallow: /forum/subcription.phpDisallow: /forum/subcriptions.phpDisallow: /forum/threadrate.phpDisallow: /forum/usercp.phpDisallow: /forum/usernote.phpDisallow: /forum/admincp/Disallow: /forum/images/Disallow: /forum/modcp/Disallow: /forum/articlebot/Disallow: /forum/clientscript/Disallow: /forum/customavatars/Disallow: /forum/customprofilepics/Disallow: /forum/files/Disallow: /forum/cpstyles/Disallow: /forum/images/Disallow: /forum/includes/Disallow:/forum/subscriptions/Disallow:/forum/attachments/Disallow:/forum/frm_attach/
Xong! chúc bạn thành công :) 

Không có nhận xét nào:

Đăng nhận xét