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

Only works on ff for the past couple months #779

Open
drizuid opened this issue Dec 25, 2023 · 5 comments
Open

Only works on ff for the past couple months #779

drizuid opened this issue Dec 25, 2023 · 5 comments

Comments

@drizuid
Copy link
Contributor

drizuid commented Dec 25, 2023

All other browsers just reload until banned by cloudflare. Started maybe 3 months ago

@drizuid
Copy link
Contributor Author

drizuid commented Jan 10, 2024

it appears this is due to most chromium based browsers trying to force https connections by default.

@GreatWizard
Copy link
Owner

Oh that's annoying because forced HTTPS blocks all requests to server in order to get the state... I'm going to think about all that if I can implements a newsolution

@drizuid
Copy link
Contributor Author

drizuid commented Jan 28, 2024

I pointed instructions to allow the sure to load unsecured on chromium, you could have https load an error page and just show those instructions?

@drizuid
Copy link
Contributor Author

drizuid commented Jul 9, 2024

Just adding this, i pinned this on discord in #general

For those of you having issues accessing the site, it is not down, it is you. Your browser (or you) are inputting https when it should be http. Here are some options

  1. use firefox
  2. edge: edge://settings/content/insecureContent add www.lan-play.com to the allowed list (otherwise edge will force you to https which will not work)
  3. chrome: chrome://settings/content/insecureContent add www.lan-play.com to the allowed list (otherwise edge will force you to https which will not work)
  4. other chromium based stuff: it's going to be something similar to what you see for edge and chrome, they're all the same.
  5. you can also try manually specifying http://www.lan-play.com which may or may not work depending on your browser's enforcement/addons

It is worth noting that if a user leaves it sitting there long enough, due to the infinite loop, cloudflare will eventually ban them for "attacking"

@minecrafted1432
Copy link
Contributor

minecrafted1432 commented Oct 1, 2024

The browsers only try to force https if the webserver offers it. There is a script tag in index.html that checks whether a user accessed the site using https and if so, redirects to http. The Browser knows that the site is also served on https and redirects back to https. Disabling https at the website hoster would stop the loop.

If https is disabled at the hoster, users get a warning when accessing the website, but they can click on ignore. Since the webserver wouldn't offer https anymore, the browser wouldn't try to force it.

Oh that's annoying because forced HTTPS blocks all requests to server in order to get the state... I'm going to think about all that if I can implements a newsolution

If you would use https on the website, the lan play server would also need to support https. I think staying on http is the simplest solution

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

3 participants