Jump to content

Reddit.com embed links no longer working


Recommended Posts

The link appears to embed correctly when I paste the URL into my own site.  

It's possible Reddit is blocking your server's IP for some reason or there is some sort of firewall preventing your server from reaching Reddit's oembed endpoint.

I would start by making sure you don't have any sort firewall rules blocking you.  If nothing is blocking you, try disabling all 3rd party resources and try again.  

It could also just be something on Reddit's side.  For example:

They might be blocking your server or something similar.  

Link to comment
Share on other sites

Reddit recently banned a huge batch of IP ranges. If you try to view that link in your screenshot directly from your server's IP you'll probably get a message like this:

Quote

whoa there, pardner!

reddit's awesome and all, but you may have a bit of a problem.

Make sure your User-Agent is not empty, is something unique and descriptive and try again. if you're supplying an alternate User-Agent string, try changing back to default as that can sometimes result in a block.

If you're attemping to access Reddit via a hosting provider or private VPN, please either login at reddit.com/login/ or register/sign in with your developer credentials here.

You can read Reddit's Terms of Service here.

if you think that we've incorrectly blocked you or you would like to discuss easier ways to get the data you want, please contact us at this email address.

when contacting us, please include your ip address which is: XXX.XXX.XXX.XXX and reddit account

This is actually the message I'm getting right now with my current IP.

 

The funny thing is that if I try to view the link using the old version (old.reddit.com) instead of the new one (www.reddit.com) there is no such error message. They're blocking the IPs only on the new UI. 😅

Edited by teraßyte
Link to comment
Share on other sites

Marc Stridgen
This post was recognized by Marc Stridgen!

Nathan Explosion was awarded the badge 'Superstar' and 10 points.

Just as a bit of information to add to the mix here...

A few weeks ago I assisted someone on a problem with Reddit embeds on their own site (non-Invision) which had the same problem - Reddit unblocked their IP address, but a few days later it was blocked again. Contacted Reddit again, they unblocked it but advised us to review the embed code being used. It was then that I spotted that the URL being used for the oembed endpoint was http://www.reddit.com/oembed - updated it to https://, and we've not seen any further blocks.

The endpoint for reddit in \IPS\Text\Parser is http://www.reddit.com/oembed

Could contain: Text, Page

Link to comment
Share on other sites

6 minutes ago, Nathan Explosion said:

Just as a bit of information to add to the mix here...

A few weeks ago I assisted someone on a problem with Reddit embeds on their own site (non-Invision) which had the same problem - Reddit unblocked their IP address, but a few days later it was blocked again. Contacted Reddit again, they unblocked it but advised us to review the embed code being used. It was then that I spotted that the URL being used for the oembed endpoint was http://www.reddit.com/oembed - updated it to https://, and we've not seen any further blocks.

The endpoint for reddit in \IPS\Text\Parser is http://www.reddit.com/oembed

Could contain: Text, Page

Thanks Nathan. Thats very helpful, and I have reported that as a bug internally. If its causing people to be blocked, we can certainly sort that 

Link to comment
Share on other sites

Just to add for anyone reading the above -

if you go to http://www.reddit.com/oembed?format=json&url=https://www.reddit.com/r/reactjs/comments/14s3r1j/adding_the_new_threadsnet_social_share_button_to/?rdt=53260&scheme=https (this is the URL produced by Invision to connect to Reddit to get the oembed code) it will redirect to the https equivalent:

https://www.reddit.com/oembed?format=json&url=https://www.reddit.com/r/reactjs/comments/14s3r1j/adding_the_new_threadsnet_social_share_button_to/?rdt=53260&scheme=https

...and produce the expected response.

I am not indicating here that it's going to fix things for those currently blocked (you will need to contact Reddit to get your server IP unblocked) nor am I indicating here that the change by Invision will stop people being blocked going forward - I am only indicating that in my case above, we have not seen any further blocks since making the change after the second unblock being done.

 

Link to comment
Share on other sites

5 hours ago, Nathan Explosion said:

Just as a bit of information to add to the mix here...

A few weeks ago I assisted someone on a problem with Reddit embeds on their own site (non-Invision) which had the same problem - Reddit unblocked their IP address, but a few days later it was blocked again. Contacted Reddit again, they unblocked it but advised us to review the embed code being used.

How did you contact Reddit to unblock your IP? 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...