How do I tell search engines via JSON Structured content that the content is free but hidden behind a login and password?

huangapple go评论47阅读模式
英文:

How do I tell search engines via JSON Structured content that the content is free but hidden behind a login and password?

问题

以下是翻译好的部分:

"That's it, my costumer has a website that has free content for professions like doctors and attorneys, that have a number they can prove they're from the profession. The content is hidden behind a registration that asks for that number, but aside from that, the registration is free.

I'm going to create preview articles for the website, so search engines can index titles and content previews.

From the research I've done, I found that for paywalled content, there is an isAccessibleForFree property that can be set to false, but how do I tell search engines that it's behind a 'Free paywall'?

More specifically, what's the markup for telling them the content is free but not available without a login?"

英文:

That's it, my costumer has a website that has free content for professions like doctors and attorneys, that have a number they can prove they're from the proffession.
The content is hidden behind a registration that asks for that number, but aside from that, the registration is free.

I'm going to create preview articles for the website, so search engines can index titles and content previews.

From the research I've done, I found that for paywalled content, there is a isAccessibleForFree property that can be set to false, but how do I tell search engines that it's behind a "Free paywall"?

More specifically, what's the markup for telling them the content is free but not available without a login?

答案1

得分: 1

"isAccessibleForFree"属性正是您所需要的。它的作用是解释内容并不直接可访问,无论是因为需要登录还是其他原因。以下是由Google提供的示例实现:

<html>
  <head>
    <title>文章标题</title>
    <script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "NewsArticle",
      "headline": "文章标题",
      "image": "https://example.org/thumbnail1.jpg",
      "datePublished": "2025-02-05T08:00:00+08:00",
      "dateModified": "2025-02-05T09:20:00+08:00",
      "author": {
        "@type": "Person",
        "name": "John Doe"
      },
      "description": "一篇非常精彩的文章",
      "isAccessibleForFree": "False",
      "hasPart":
        {
        "@type": "WebPageElement",
        "isAccessibleForFree": "False",
        "cssSelector" : ".paywall"
        }
    }
    </script>
  </head>
  <body>
    <div class="non-paywall">
      非付费内容
    </div>
    <div class="paywall">
      付费内容
    </div>
  </body>
</html>

有关其余细节,可以在他们的网站找到:订阅和付费内容的结构化数据

英文:

> More specifically, what's the markup for telling them the content is free but not available without a login?

The isAccessibleForFree property is exactly what you need. Its purpose is to explain that the content is not directly accessible, regardless of whether this is due to the fact that you need to log in. Here is an example implementation provided by Google:

&lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;Article headline&lt;/title&gt;
    &lt;script type=&quot;application/ld+json&quot;&gt;
    {
      &quot;@context&quot;: &quot;https://schema.org&quot;,
      &quot;@type&quot;: &quot;NewsArticle&quot;,
      &quot;headline&quot;: &quot;Article headline&quot;,
      &quot;image&quot;: &quot;https://example.org/thumbnail1.jpg&quot;,
      &quot;datePublished&quot;: &quot;2025-02-05T08:00:00+08:00&quot;,
      &quot;dateModified&quot;: &quot;2025-02-05T09:20:00+08:00&quot;,
      &quot;author&quot;: {
        &quot;@type&quot;: &quot;Person&quot;,
        &quot;name&quot;: &quot;John Doe&quot;
      },
      &quot;description&quot;: &quot;A most wonderful article&quot;,
      &quot;isAccessibleForFree&quot;: &quot;False&quot;,
      &quot;hasPart&quot;:
        {
        &quot;@type&quot;: &quot;WebPageElement&quot;,
        &quot;isAccessibleForFree&quot;: &quot;False&quot;,
        &quot;cssSelector&quot; : &quot;.paywall&quot;
        }
    }
    &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;div class=&quot;non-paywall&quot;&gt;
      Non-Paywalled Content
    &lt;/div&gt;
    &lt;div class=&quot;paywall&quot;&gt;
      Paywalled Content
    &lt;/div&gt;
  &lt;/body&gt;
&lt;/html&gt;

The rest of the details could be found on their website: Structured data for subscription and paywalled content

huangapple
  • 本文由 发表于 2023年2月14日 03:10:51
  • 转载请务必保留本文链接:https://go.coder-hub.com/75440265.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定