Do individual requests influence website speed in general?

Asked

Viewed 27 times

0

Good morning!

A customer is on the site, it runs on the console a code like this for example:

setInterval(function(){
   console.log('Teste');
}, 1);

This code of his, running in his browser, can it in any way harm the speed of the site in general? From the server or something, or it’ll just harm itself?

This setInterval was just an example, it could be anything else, a for that will leave an infinite loop for example.

  • 1

    It may crash is the client’s browser. Now, if he makes excessive requests to the server in a short amount of time, some people understand that this is some kind of abuse and suspend access to that IP for a few minutes.

  • Dude if he’s doing it on the console I think it will only affect locally, but if he does it for an input, like an XSS attack ai can affect your page yes. Sometimes this article may interest you, it is very common this type of attack on Wordpress and Joomla in older versions and with the outdated PHP http://www.redesegura.com.br/2012/01/saiba-mais-sobre-o-crosssite-scripting-xss/

1 answer

1

This code from your example runs locally only in client browsing, so it won’t hurt the speed or performance of the application on the server or for other users. Even if it was a for, will only reflect on the customer.

Now if your code made numerous calls to the server, requesting a page or a service, api, etc, ai can reflect on the performance on the server and for other users.

In general, web servers have tools to block many requests coming from the same IP for example (which could be an example of a Dos and Ddos attack), but if it is not configured correctly, it can even bring down the service.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.