W
W
weranda2016-04-10 14:26:46
JavaScript
weranda, 2016-04-10 14:26:46

How to hide or mask the real link in JS?

Greetings
I am not strong in JS. There is an external form in the program file. The code has this entry:

qst_form.setAttribute('action',  'http://site.ru/in/questionare.php?page_charset='+page_charset+'&ts'+new Date().getTime());

Are there simple ways to hide the real address of the site in the stake, so that these site addresses are inaccessible when viewing the page code to any people, but so that the code correctly fulfills its task?
I tried the obfuscator, everything works correctly, but the link is still visible during deobfuscation.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey, 2016-04-10
@weranda

what about the meaning? anyway, when submitting the form, the address will be visible in the console...

S
senior_serg, 2019-12-03
@senior_serg

Try a normal obfuscator where deobfuscation can't be done just like that. Something of the level https://greybazar.com/shop/jscrypt_in/
To protect against viewing the address when submitting the form, the use of a proxy domain, in addition to obfuscation of the script itself, will help in addition to obfuscation of the script itself, to which they will be sent in encrypted form (at least a banal XOR, and then base64) form data and the address of the destination site, and the proxy domain will forward this data to the destination itself. But such a scheme is not possible everywhere, you need to look at the situation.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question