1

I followed the tutorial in react.js documentation to create a tic-tac-toe game using create-react-app. Then, I followed this tutorial to deploy it on AWS S3. Now, I am able to access the game through the static website link provided by S3, but the first time that I click anywhere on the webpage, i am redirected to some sketchy website (like this).
What is going on? I tried searching why this is happening and how i can avoid it, but couldn't get any answers.

piggybank
  • 13
  • 2
  • 4
  • Does the same happen when you run it locally? Are you sure the code isn’t compromised? – Ermiya Eskandary Dec 07 '21 at 08:51
  • It runs fine on my local machine and i don't think my code is compromised. It is a very small code, so, i know it in and out. Also, i track changes in VSCode before pushing it to my Github repo. Never noticed anything fishy. – piggybank Dec 08 '21 at 05:05
  • 1
    Try incognito with no plugins enabled or a different browser? – Ermiya Eskandary Dec 08 '21 at 06:54
  • The problem went away magically! I mean, I started the app in an incognito window, as per your suggestion and it worked fine, then started in a normal one and it is working fine here too! Also, previously the problem persisted across all browsers (Chrome, Chromium, Firefox). Thanks for your time though. What could be a possible reason for this? – piggybank Dec 08 '21 at 08:22
  • I'm not sure but it looks like you may have some sort of DNS hijack or perhaps a malicious plugin or maybe just a really corrupted cache? Not sure but glad you got your problem sorted :) if in doubt, always try incognito / another browser ;) – Ermiya Eskandary Dec 08 '21 at 10:18

0 Answers0