SShortSingh.
Back to feed

Embedded iframes can silently add third-party star ratings to your page's structured data

0
·1 views

A web developer discovered that Google's Rich Results Test attributed four valid structured-data items to their game page, even though only one was written by them — the other three came from a third-party iframe they do not control. The embedded document contained its own JSON-LD graph, including an Organisation, a Review snippet, and a Software App entry complete with a star rating, all of which Google's tool linked to the host page's URL. Testing revealed that of 200 live game pages examined on 8 August 2026, none carried a rating in their own markup, yet 190 of their embed documents did. Among 11 public embed endpoints analysed, four served parseable JSON-LD and one served an aggregateRating property. The author notes this does not guarantee rich results will appear in search, but confirms the structured data is being detected as valid and attributed to the parent URL.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Codeberg Bans AI-Generated Code After Members Vote 71% in Favor

Codeberg, a Berlin-based non-profit Git platform with a democratic membership structure, voted between July 9–22, 2026 to restrict AI-generated code uploads, with 358 votes in favor and 144 against out of 516 total. The new Terms of Use prohibit content primarily composed of code written by generative AI tools such as Claude or OpenAI Codex. Enforcement will be handled case-by-case rather than through automated mass deletions, and older repositories predating large language models are not affected. Supporters argue the policy addresses a practical imbalance: while AI makes code generation cheap, human volunteer reviewers still bear the full cost of evaluating every pull request. The Zig programming language community has since migrated its infrastructure to Codeberg, citing GitHub's push toward AI-assisted workflows as a key reason.

0
ProgrammingDEV Community ·

One Developer Built a 131-Test AI Eval Harness After a Chatbot Hallucinated a Discount

A solo developer building AI agents for WhatsApp discovered that passing all unit tests was no guarantee of safe production behavior after a lead qualification bot invented a non-existent 15% discount for a client. The incident caused no direct revenue loss but damaged trust, and the root cause was traced to subtle drift in the LLM's internal reasoning rather than any code bug. In response, the developer built a four-layer evaluation harness now comprising 131 tests, running on Oracle Cloud Infrastructure at just $0.03 per full run. Unlike standard unit tests, which verify deterministic code outputs, the harness also evaluates semantic intent, catching cases where an LLM might misclassify user messages after a model update. The developer now mandates that no new AI agent feature ships without first passing through this evaluation framework.

0
ProgrammingDEV Community ·

AI Gateway Pattern Lets Developers Use One Key for Claude, GPT, and Gemini

Managing multiple AI model providers typically requires separate API keys, SDKs, and billing accounts for each, adding complexity unrelated to the core product. The AI gateway pattern solves this by routing all requests through a single OpenAI-compatible endpoint using one credential, regardless of the target model. On Neon's serverless platform, enabling the gateway via a config flag automatically injects the required token and base URL into the deployed function, eliminating manual key management. A developer tested the setup by sending identical chat requests through a single handler to GPT, Claude, and Gemini, all returning correct responses with the same code. One noted compatibility issue is that GPT-5 models require the max_completion_tokens parameter, while other providers use max_tokens.

0
ProgrammingDEV Community ·

Why storing company data as static columns erases historical truth

A software developer argues that storing company attributes like CEO names and headquarters as simple database columns is fundamentally flawed, because these facts change over time and static fields cannot capture that history. When a value is overwritten, the previous data is permanently lost, making it impossible to answer questions tied to a specific point in time. The proposed fix is an event-based schema where each change is recorded as a new row with a valid_from date, a valid_to date, and a source URL, preserving the full timeline. The author also highlights the need to store date precision alongside dates, since sources often only specify a year or quarter rather than an exact day. The core principle offered is that any company fact capable of changing should be modelled as a dated, sourced event rather than a column.

Embedded iframes can silently add third-party star ratings to your page's structured data · ShortSingh