COGDemos bugs/requests

Good luck! It’s not like I haven’t been used to saving every other page, since I’ve had the eternally-loading-on-scene-change due to my internet connection dropping at a critical moment for ages, but Cloudflare is admittedly complicating things there.

1 Like

Yeah, Cloudflare helps in one respect, but it has created bizarre bugs, too. I just tested the scene changes and viewing stats–if you’re click happy, everything is fine and dandy. If you let it stew a bit…. then you get stuck in spinning hell. My guess is some kind of caching issue (I moved it from DB to file, so it may not like that) or mismatch between what Cloudflare is doing and what the code is doing. I will take a look after work.

4 Likes

I have noticed on Nexus that Cloudflare tends to want to re-check your not-a-bot status if you haven’t been loading a page for a few minutes, so it may be the same thing happening in here, since going through a scene file - especially if you’re reading and not only skimming! - may take a while, and you generally from what I understand actually don’t load anything until switching scene files.

I’m going to play something and see how it’s behaving now, I haven’t tested after your latest update.

2 Likes

you and the dev are so beautiful and gorgeous for dealing with this so promptly. thank yall for working so hard :pleading_face::heart:

7 Likes

Thanks for working so hard to fix this, and I’m sorry it’s happening!

Also came by here to mention that I’m getting stuck in an infinite verification loop on Kindle Fire. I think it might be an issue with Silk, Amazon’s built-in browser app. I’m able to verify fine on my phone with Chrome (albeit with the same need to refresh and re-verify others have reported), but I’m hard stuck on Kindle. And Kindle is where I normally read from :pensive_face:

2 Likes

Currently whenever I reload a page, I lose all progress in a game even if I’ve selected to save my progress. Is this something new?

2 Likes

I’ll see if I can figure out what’s going on. The dev contacted me today and I need to get him some info, so I’ll send this along, too. I’ve been testing on and off and am having trouble with Firefox on my phone (but not on PC), so I think Cloudflare is causing some weird issues still.

Are saves not working? Locally or on the server?

4 Likes

Getting uncaught reference error stats is not defined and an uncaught type error cannot read properties of undefined (reading ‘setStartingStatsClone’) whenever I click on any demo regardless of the game. Guessing this is a bug that’s going around in the aftermath of these bot attacks.

2 Likes

I’m using phone to read cog demo and one thing I hate is everytime I refresh the page it always take me to verify page. I mean I don’t mind it but if it takes me there everytime I refresh the page it’s really annoys me :downcast_face_with_sweat:

1 Like

What browser are you using? And is it mobile (phone/tablet) or PC? The only way I’m getting the weird errors is on Firefox on my iPhone.

I just turned down the throttling on /play. If everything stays calm tomorrow, I’ll just leave the throttle on the main site (and re-enable favorites). I found another list of bots to add to my Apache block list, and that should help, too.

I’m going to shut that off tomorrow, provided things stay calm on the site. I just don’t want to shut it down, go to bed, and wake up to everyone pissed off because the site’s not responding again. :wink:

Yep… what I don’t get is that I have it set to check every hour (before, it was 30 minutes, because I was sick of getting hammered by the crap that slipped past Cloudflare), but it seems to be more often.

I suggest spamming quick save until everything is settled. I also think Cloudflare is doing something funky with the cookies, but haven’t quite nailed down what it is yet. That is likely a dev question.

5 Likes

the culprit is cloudflare. That script is on timer so if you stay on a website too long it has to verrify you again. i think its called ‘‘time-out’’ (not sure about that section but its clearly cloudflare).

4 Likes

lol, i took a specific look on how the rules works. The " clouflare owasp ruleset " of boy ! cogdemos can’t work with cloudflare scripts its impossible.

In my many sessions i open a tab and don’t refresh it for days…days !!! the cloudflare time-out will take those tab connections as an hostile bot or something, sigh !

Is bots problems on cogdemos this serious ? Do connections need to be refresh often ?

1 Like

Like I said, if it stays calm with traffic, I’ll take the throttle of of the play path, which should ease this some.

But yeah, the bots were that bad the other night–5k hits over ten minutes from one IP, with another 10-15 IPs doing the same thing. Blocking the IP was like whack-a-mole, because they were changing their IP often. By the time I woke up yesterday morning, there were over a million hits over night and it killed the site. It wasn’t fun.

I know it’s annoying right now, but I’d rather have the site working (mostly) than to have it lose function for everyone. I’m hoping cloudflare will help this enough where I can ease the restrictions on re-verifying often (and am going to tinker more with the blocks I have set up on the server itself).

8 Likes

Thank you so much for your hard work. :smiling_face_with_three_hearts:

1 Like

Cogdemos has one of the best low ressource loading time. Meaning that a low ressource internet connection can enjoy the website, one of the best perk of the site.

I was in the believe that the website load the texts to the client and close the connection. So bots are the only one that refresh more than 5 times in the row. And its easy to see those bots and to manage them. In my opinion cloudflare mess thing up and isn’t practical (without going on the more serious topic on how the censure work with cloudflare).

i found documentation in the waf (web application firewall) section.
take a look it may help :

—> https:/developers.cloudflare.com/waf/rate-limiting-rules/best-practices/

Will like to read about evil-couldflare if you find a work around. :smiley:

Custom captcha are the best against any bot; But im pushing. Good luck on this.

Till next.

3 Likes

Chrome and only on laptop/pc. Looks like whatever you did fixed it.

1 Like

I’ve had the save system throw errors when Cloudflare’s decided to throw a fit mid-init so some files didn’t load, maybe it was the same issue?

1 Like

Saves aren’t working, but it seems to be local to my browser. Works fine on Chrome, but my main browser is Yandex.

1 Like

This is new, I think. Gets fixed by a refresh, usually, but still. (Randomly on page load when returning to a tab that has a game open but decides to refresh, if that helps.)

1 Like

When/how did you get that? I don’t think I’ve ever seen it.

It’s possible Cloudflare is blocking Yandex, so I’ll take a look.

Thanks, I’ll take a look at it and see if I can get it ironed out a bit more.

2 Likes