J
J
jsr2013-04-25 12:19:32
Perl
jsr, 2013-04-25 12:19:32

XSS and escaping?

Where is it better to do screening on the client, or on the server?
Of course, I am convinced that the server should do this, since it is more adapted to this, has a bunch of all sorts of methods. And on the client, you need to monitor data entry and spend time processing string information.
Share your experience.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
jov, 2013-04-25
@jov

The client cannot be trusted! Only on the server.

S
Stdit, 2013-04-25
@Stdit

If html is formed on the server, then escaping is on the server.
If it is formed on the client, then it is screened within the framework of json (or in what it comes from the server), and html-screening can be performed by a javascript template engine.
And more, I did not understand, and here perl.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question