Discuz! Board

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 76|回复: 0

Added with the php version update

[复制链接]

2

主题

2

帖子

8

积分

新手上路

Rank: 1

积分
8
发表于 2023-11-22 13:07:18 | 显示全部楼层 |阅读模式
You may or may not use it. robots.txt example Robots.txt file examples The above commands are the basis for creating rules that constitute the entire structure of the robots.txt file. At the beginning, creating such rules may seem difficult, but it is actually a piece of cake and a task that can be completed in a few dozen seconds. To summarize the entire process into one sentence: first, you specify which robot/search engine you are referring to ("User-agent"), and then list the rules that the robot should follow - using "Allow" and "Disallow". Below we will present some examples and describe what exactly they mean.

Blocking a single bot from accessing your site User-agent: Google Disallow:  Blocking the Google search engine from indexing the entire website. Block all bots from accessing the site User-agent:  Disallow:  Blocking all search engines from indexing the entire website. Lock a specific photo editor folder or file User-agent: Disallow  Blocking access to the /images/ folder and the support html page for all search engines. Unlock a single file in a locked folder User-agent:  Disallow Blocking access to the /images folder, excluding the zdjecie pg file, for all search engines.



Blocking different folders for different bots User-agent:  User-agent: Bing Disallow User-agent Google Disallow:  Blocking the info folder for all search engines, blocking the entire page for the Bing search engine, and blocking the images folder for the Google search engine. How to test your robots.txt file You can easily test the robots rules on the Google Search Console page to make sure it's configured correctly. Just select your website in the panel above and then select "Robots txt File Tester" from the "Download" tab. At the bottom of the page there is a URL bar that you can submit for testing.

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|DiscuzX

GMT+8, 2025-6-5 09:33 , Processed in 0.074070 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表