【问题标题】:Umbraco imagegen.ashx disallowed in robots.txt couse images blocked from searchrobots.txt 中不允许使用 Umbraco imagegen.ashx,因为图像无法搜索
【发布时间】:2015-06-26 14:46:05
【问题描述】:

我使用 imagegen.ashx 来调整我的 Umbraco 4.7 网站上的图像大小。默认情况下,robots.txt 中不允许使用它,并且我使用处理程序的图像不会出现在搜索引擎结果中 - 我已在 Google 网站管理员中检查它们已被阻止。我想允许搜索这些图像。

  • 我可以通过在 robots.txt 中允许 imagegen.ashx 来实现吗?
  • 我也想知道默认情况下不允许它有什么好的理由吗?
  • 如果我允许它,它会解决我的图像被阻止的问题,还是需要更多的配置更改?

【问题讨论】:

  • 您介意使用示例图片 URL 更新您的帖子吗?这将帮助我们更轻松地为您提供帮助。

标签: seo umbraco robots.txt


【解决方案1】:

您可以安全地从 robots.txt 中删除 imagegen.ashx。

到目前为止,我知道 robots.txt 中不允许默认设置 Umbraco 和 ImageGen 不会创建默认的 robots.txt(最近的 ImageGen 版本中没有)

使用 Umbraco 和 ImageGen 生成的图像只能在 Google 中找到并显示。没有风险,

ImageGen 具有一些低风险,攻击者可以更改查询字符串参数并重复生成新的唯一图像(磁盘空间,cpu 周期),但图像大小在配置中受到限制。这与 robots.txt 无关

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-02-06
    • 2023-04-07
    • 2021-02-10
    • 2017-02-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多