我怎么可能prevent搜索引擎从我的网站上抓取一个子域? [英] How may i prevent search engines from crawling a subdomain on my website?

查看:178
本文介绍了我怎么可能prevent搜索引擎从我的网站上抓取一个子域?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装在我的网站的cPanel。

I have cPanel installed on my website.

  1. 我去域节的cPanel

  1. I went to the Domains section on cPanel

我点击子域。

我分配的子域名(如:personal.mywebsite.com)

I assigned the subdomain name (e.g : personal.mywebsite.com )

这要我还指定文档根目录文件夹。我分配mywebsite.com/personal

It wanted me to assign document root folder also. I assigned mywebsite.com/personal

如果我在我的网站根目录下创建的robots.txt(如:website.com)

if i create robots.txt in my website root(e.g : website.com)

用户代理:

不允许:/个人/

它还可以阻止personal.mywebsite.com?

Can it also block personal.mywebsite.com?

我应该怎么办?

感谢

推荐答案

当您希望阻止对 personal.example.com 网​​址,请访问 http://personal.example.com/robots.txt (RESP。 HTTPS 而不是 HTTP )。

When you want to block URLs on personal.example.com, visit http://personal.example.com/robots.txt (resp. https instead of http).

没关系服务器如何组织文件夹中的后台访问该网址时,它的robots.txt是可用的,它只是事宜。

It doesn’t matter how your server organizes folders in the backend, it only matters which robots.txt is available when accessing this URL.

这篇关于我怎么可能prevent搜索引擎从我的网站上抓取一个子域?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆