Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requests blocked as of 1 May #6

Open
dziban303 opened this issue May 6, 2024 · 1 comment
Open

Requests blocked as of 1 May #6

dziban303 opened this issue May 6, 2024 · 1 comment

Comments

@dziban303
Copy link
Contributor

I was wondering why the lockscreen image hadn't updated in several days. Turns out that Reddit appears to be blocking requests now.

Invoke-WebRequest:


    Blocked

      body {
          font: small verdana, arial, helvetica, sans-serif;
          width: 600px;
          margin: 0 auto;
      }

      h1 {
          height: 40px;
          background: transparent url(//www.redditstatic.com/reddit.com.header.png) no-repeat scroll top right;
      }



    whoa there, pardner!

Your request has been blocked due to a network policy.

Try logging in or creating an account here to get back to browsing.

If you're running a script or application, please register or sign in with your developer credentials here. Additionally make sure your User-Agent is not empty and 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.

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 file a ticket here.

when contacting us, please include your ip address which is: [redacted] and reddit account

I tried using a different useragent string but it kept blocking requests.

It turns out that changing the URLs used from https://reddit.com to https://old.reddit.com fixed the problem for me. I have a suspicion that this problem was plaguing me alone, but maybe not?

@VictorColomb
Copy link
Owner

I have a Linux in dual-boot and I quite rarely come back to Windows, so much so that I had not noticed, but it indeed has stopped working on my end too. That blows...

According to this, Reddit seems to now be enforcing mandatory authentication on their APIs. To be honest, I am not going to develop an entire OAuth2 client to make this continue to work. Still, good to hear that old.reddit.com is still working. Hopefully that lasts for a while!

If you would like to take a crack at this, I'll happily archive this repo and include a link to your fork in the README. Let me know!

@VictorColomb VictorColomb pinned this issue May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants