Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I have been running alot of javascript code on nike.com through the console in o

ID: 660332 • Letter: I

Question

I have been running alot of javascript code on nike.com through the console in order to create a shoe bot. The code i paste into the console has one intense loop with many iterations which makes me worry as I got a temporary site down when i tried to connect to the site earlier. My code is by no means harmful, all it does is scans the site for elements using normal js functions. Could this be considered as spam? Could I get into trouble? What is considered not okay when running console javascript code on a site in your browser? If my question isn't clear please let me know and I will try to explain it better.

Explanation / Answer

The Javascript is running on your browser, not "on a site". Your browser is doing everything.

You can access their DOM, but that's alright, because you are only seeing content which has been sent to your browser. You can't see other user's data or any of the server internals.

Also, the browser has a number of builtin limits and throttles. I believe the per-host connection limit is 4, so even if you did write some bad javascript that tried to load 1,000,000 urls from the web site, it would only run 4 urls at a time, which is not much extra load for a moderately sized web site.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote