# Indexiert, obwohl durch robots.txt-Datei blockiert

**URL:** <https://forum.shopware.com/t/indexiert-obwohl-durch-robots-txt-datei-blockiert/90580>\
**Category:** Allgemein\
**Created:** [28. September 2021 um 07:57 UTC](https://forum.shopware.com/t/indexiert-obwohl-durch-robots-txt-datei-blockiert/90580 "2021-09-28T07:57:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![10083349](https://avatars.discourse-cdn.com/v4/letter/1/bc79bd/32.png) [@10083349](https://forum.shopware.com/u/10083349)\
**Post date:** [28. September 2021 um 07:57 UTC](https://forum.shopware.com/t/indexiert-obwohl-durch-robots-txt-datei-blockiert/90580/1 "2021-09-28T07:57:09Z")

</div>

Das betrifft nur eine Seite:  
[http://www.meineSeite.de/widgets/index/refreshStatistic](http://www.meineSeite.de/widgets/index/refreshStatistic)

Ich vermute, dass das Problem von themes → frontend → bare → frontend-\> robots\_txt → index.tpl kommt.

Kann das daran liegen, dass der Eintrag für die widgets einmal unter  
frontend\_robots\_txt\_disallows  
und einmal unter  
frontend\_robotstxt\_allows  
steht?

```auto
{block name="frontend_robots_txt_disallows"}
    {$robotsTxt->setDisallow('/compare')}
    {$robotsTxt->setDisallow('/checkout')}
    {$robotsTxt->setDisallow('/register')}
    {$robotsTxt->setDisallow('/account')}
    {$robotsTxt->setDisallow('/address')}
    {$robotsTxt->setDisallow('/note')}
    {$robotsTxt->setDisallow('/widgets')}
    {$robotsTxt->setDisallow('/listing')}
    {$robotsTxt->setDisallow('/ticket')}
    {$robotsTxt->setDisallow('/tracking')}

    {block name="frontend_robots_txt_disallows_output"}
        {foreach $robotsTxt->getDisallows() as $disallow}
            {$disallow}
        {/foreach}
    {/block}
{/block}

{block name="frontend_robots_txt_allows"}
    {$robotsTxt->setAllow('/widgets')}
    {block name="frontend_robots_txt_allows_output"}
        {foreach $robotsTxt->getAllows() as $allow}
            {$allow}
        {/foreach}
    {/block}
{/block}

```
