如何在我的网页中允许 google 请求

How I can allow google request in my web page

我允许在我的网页上显示某些特定页面。如何允许 google 请求获取我的页面信息

<body itemscope itemtype="http://schema.org/Product">
<h1 itemprop="name">Shiny Trinket</h1>
<img itemprop="image" src="{image-url}" />
<p itemprop="description">Shiny trinkets are shiny.</p>
</body>

这是我的页面。但我只允许那些人看到我的登录页面。

当我想从 google 分享时,它呈现我的页面,并且由于登录许可,它的请求移动到登录页面。

如何允许 google 请求在不登录的情况下获取我的页面。

我想我在某处读到可以将登录名和密码传递给 google 索引机器人。尝试 Google WEBMASTERING

我不确定?!

https://codereview.stackexchange.com/questions/85892/allowing-googlebot-to-crawl-a-password-protected-page

尝试

@can('your_role')
<h1 itemprop="name">Shiny Trinket</h1>
<img itemprop="image" src="{image-url}" />
<p itemprop="description">Shiny trinkets are shiny.</p>
@endcan