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


How I can allow google request in my web page

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

<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 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