How to deny access to all sockets except for my website?

I have the above. in the VC.
It is necessary to limit the opportunity to use my socket server left all the dudes that only my clients could connect.
Yes, there are origins, but as I understand it they did not help me, some people have bypassed.

If there are no other normal ways, normal any idea to write on the front-end random generator of some hash and obfusticate him that it was not clear how it is generated.
March 23rd 20 at 19:27
2 answers
March 23rd 20 at 19:29
Solution
If there are no other normal ways

no.
All versions of protection only helps against spam/BTC for a nice surprise servers, limit the number of frames which can send the client per minute, to limit the size of the input data, etc.

the front-end random generator of some hash and obfusticate him that it was not clear how it is generated.

all that happened in front is not a mystery.

Yes, there are origins, but as I understand it they did not help me, some people have bypassed.

because it only works for browsers to connect directly the server script is not banned.
March 23rd 20 at 19:31
CORS must

Find more questions by tags WebSocket