Specific site won't embed because it blocks unknown user agents


(Tim) #1

There’s a site whose content my community posts regularly, and it won’t Onebox despite being whitelisted to force it. Its OG validates on Iframely.

Here’s an example:

https://www.roarlionsroar.com/penn-state-basketball/2018/01/3676/penn-state-vs-minnesota-preview

Sorry if my searches for a previous answer to this were unsuccessful. Any ideas? I’m running 1.9.


(Jeff Atwood) #2

Usually this is because it is missing a text description. Does iframely validate the text description field?


(Tim) #3

Yeah, it does:


(Jeff Atwood) #4

Sure can you take a quick look @vinothkannans?


(Vinoth Kannan) #5

That website returns 403 Forbidden response whenever Discourse try to fetch the URL with request headers {"User-Agent"=>"Discourse Forum Onebox v2.0.0.beta1"}. Looks like they are blocking all the unknown user agents.


(Jeff Atwood) #6