Is it possible to block end users from using Javascript to trigger events? [closed] - javascript

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
As an example, let's assume I want to prevent users from using auto-clickers. Is it possible, and are there accepted best practices when doing this?

Nope, it is not possible. Someone can always turn off JavaScript, modify it, run their own JS-code, etc, etc. JavaScript should never ever be used for security reasons.
However, for AJAX-requests you could implement a minimum interval server-side (like on Stack Overflow).

Related

How can we mitigate shopping-cart checkout spamming? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 days ago.
Improve this question
We have an e-commerce site that allows you to check out as a guest.
An individual has been using it to check if stolen credit card numbers function.
We plan to add invisible captcha, which helps for people using scripts/headless browsing/automation, but it doesn't stop someone from manually using it this way.
We could track a cookie that starts to prevent/timeout the user from checking out if there are enough recent requests, but that's easily workaround-able.
It seems like a situation where it can't be limited too much further because normal users need to be able to check out, but are there any other specific methods that would help?

Is there a way of detecting a hidden bug that only happens to specific person/hardware in react? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed last month.
Improve this question
Is there a way of detecting a bug that only happens with a specific person/ hardware within a React application? Cause the bug is undetectable and never happens with tests and etc, only happens with a specific client from my company.
Any clue on how to debug those kind of hidden/undetectable bugs ?
you can add something like https://sentry.io/ to capture errors in production, and get the stack trace of the error, and details like browser version, etc

Is it possible to code for tradingview not using Pine Script? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I am trying to code in Pine Script but as you may know it doesn't make sense at all, I can't figure it up how it lifecycle works.
Is there an alternative way to code for it? C sharp, JavaScript, Python and .... anything?
No, that's not possible.
The way that Pine Script works is very different from classical programming languages.
To gain an understanding of how it works, you should first read about the Execution model of Pine.
Another excellent resource is PineCoders.

Using for loop in javascript for 50k time without hanging of browser [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I have to run a loop for 50,000 times, but it is hanging browser. what could be the best way to do it.
sample :
for(var i=0;i<50000;i++)
{
// Here I am calculating 50 different values.
}
I can't use php because values are displayed directly in html page.
what I can do for it?
thanks
You could try a webworker. Here is a package that might simplify things for you.

Does disabling javascript in browsers affect jQuery? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I know user disabled the JavaScript in his browser, it leads to disabled the JavaScript validations on client side. Whether it may affect the jQuery validations or not and I need to know conceptual explain.
Yes, jQuery is a Javascript library, so if Javascript is switched off in the browser, then jQuery will not run.

Categories