K
K
Kotovasofa2020-10-27 15:01:56
Python
Kotovasofa, 2020-10-27 15:01:56

How to protect the calculator for calculating the cost of building a pool on the site from downloading?

Good afternoon, I would like to know an urgent topic. I have never done such things, so I want to understand what the correct architecture looks like.

I have an idea -> a site for building swimming pools and a calculator that will give the final cost based on a selection of 8-10 constants and variables that will be entered into the input or selected from the proposed drop-down list.

Question: I will write the calculator in JS. How are calculators usually protected? So that no one could download the js file and get a calculator for themselves. How to write such small calculators correctly?

If there is an example of such calculators, and an example of their development, I will be very grateful.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Kitaev, 2016-05-01
@YardalGedal

Mistakes need to be able to read.
It's written:
This is line 5.
Most likely post['response'] is a list, not a dictionary.

A
Alexander, 2020-10-27
@Kotovasofa

No way. Dot. Forget about any way to protect your front code. They want to steal. You can make the code less readable, add a lot of water, but nothing will give any guarantees. We stole the wallet js code and made a modified copy. And the reason is simple - all the executable code comes to the client on the PC and then remains with him. But do not worry, your logic is so elementary that it will be easier to write it than pressing ctrl+s.
Well, if you think that your efforts have given up to someone - do it through the backend, the calculation time will grow up, but for that no one will steal your unconditionally expensive and complex code

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question