# Shop via htaccess sperren

**URL:** https://forum.shopware.com/t/shop-via-htaccess-sperren/91473
**Category:** Shopware 6 (German)
**Created:** [14. November 2021 um 00:43 UTC](https://forum.shopware.com/t/shop-via-htaccess-sperren/91473 "2021-11-14T00:43:09Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![sonic](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/sonic/32/25728_2.png) [@sonic](https://forum.shopware.com/u/sonic)
#### Post date: [14. November 2021 um 19:10 UTC](https://forum.shopware.com/t/shop-via-htaccess-sperren/91473/2 "2021-11-14T19:10:43Z")

</div>

guck mal hier

> [@Shopware 6 EA, keine Indexierung durch Suchmaschinen](https://forum.shopware.com/t/shopware-6-ea-keine-indexierung-durch-suchmaschinen/60500/10):
>
> So, nach meinem Serverumzug bei All-Inkl funktionierte obiges Exclude der API nicht mehr. Nach längerem&nbsp;Basteln und Googlen habe ich nun folgende Lösung (.htacess im übergeordneten Pfad, also z.B. dem Ordner vor public) (bei mir in etwa so: devtests/SW6EA/public habe ich es direkt in devtest liegen, so kann ich mit einer Datei mehere Testdomains schützen) AuthType Basic AuthName 'Authentication required' AuthUserFile /www/htdocs/meinpfad/.htpasswd # Allow access to excluded diretories SetEnvI…

---

_[View the full topic](https://forum.shopware.com/t/shop-via-htaccess-sperren/91473)._
