Search code examples
json-ldstructured-data

Is it possible hiding/not making JSON-LD structured data visible easily to user?


Is it possible hiding/not making JSON-LD structured data visible easily to user, but recognizable for bots? The effort I put into making the structured data for my website should not be easily copied by competitors. Any idea?

Thank you very much!


Solution

  • You can embed JSON-LD inside a script tag. That hides it from end users but makes it still visible in the source code. You can also dynamically embed such script blocks. You then need some way to differentiate between good/bad bots in the backend.