Discuz! Board

 找回密碼
 立即註冊
搜索
熱搜: 活動 交友 discuz
查看: 1|回復: 0

A robots.txt file must always be at the root of your domain

[複製鏈接]

1

主題

1

帖子

5

積分

新手上路

Rank: 1

積分
5
發表於 2024-2-27 19:22:43 | 顯示全部樓層 |閱讀模式
wanted to allow all bots except DuckDuckGo to crawl your site: robots.txt disallow Note : If a robots.txt file provides instructions, it cannot impose them. It's like a code of conduct. Good bots (like search engine bots) will follow the rules, but bad bots (like spam bots) will ignore them. How to find a  file The robots.txt file is hosted on your server, like any other file on your website. You can see any website's robots.txt file by typing the full URL of the homepage and then adding /robots.txt, like.

  Where Robots.txt is located Middle East Mobile Number List on your site Note : So, for the site  , the robots.txt file is located here:  . Otherwise, crawlers will assume you don't have one. Before we learn how to create a robots.txt file, let's look at the syntax it contains. Syntaxe du robots.txt A robots.txt file is composed of: One or more blocks of “directives” (rules); Each with a specified "user-agent" (search engine bot); Et une instruction "allow" ou "disallow". A relatively simple block might look like this: User-agent: Googlebot Disallow: /not-for-google User-agent: DuckDuckBot Disallow: /not-for-duckduckgo Sitemap: : La directive User-agent.



The first line of each directive block is the "user-agent", which identifies the crawler it is addressing. So, if you want to tell Googlebot not to crawl your WordPress admin page, your directive will start with: User-agent: Googlebot Disallow: /wp-admin/ Remember that most search engines have multiple crawlers. They use different crawlers for their normal index, images, videos, etc. Search engines always choose the most specific block of guidelines they can find. Suppose you have three sets of directives: one for *, one for Googlebot.

回復

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 立即註冊

本版積分規則

Archiver|手機版|自動贊助|GameHost抗攻擊論壇

GMT+8, 2025-5-7 22:15 , Processed in 0.044841 second(s), 19 queries .

抗攻擊 by GameHost X3.4

© 2001-2017 Comsenz Inc.

快速回復 返回頂部 返回列表
一粒米 | 中興米 | 論壇美工 | 設計 抗ddos | 天堂私服 | ddos | ddos | 防ddos | 防禦ddos | 防ddos主機 | 天堂美工 | 設計 防ddos主機 | 抗ddos主機 | 抗ddos | 抗ddos主機 | 抗攻擊論壇 | 天堂自動贊助 | 免費論壇 | 天堂私服 | 天堂123 | 台南清潔 | 天堂 | 天堂私服 | 免費論壇申請 | 抗ddos | 虛擬主機 | 實體主機 | vps | 網域註冊 | 抗攻擊遊戲主機 | ddos |