Skip to content Skip to sidebar Skip to footer
Showing posts with the label Xss

Sanitize Html5 With Php (prevent Xss)

I'm building WYSIWYG editor with HTML5 and Javascript. I'll allow users post pure HTML via … Read more Sanitize Html5 With Php (prevent Xss)

Prevent User-entered Scripts From Running In Webpage

In my application, there is a comment box. If someone enters a comment like then an alert appea… Read more Prevent User-entered Scripts From Running In Webpage

Html: Should I Encode Greater Than Or Not? ( > > )

When encoding possibly unsafe data, is there a reason to encode >? It validates either way. The… Read more Html: Should I Encode Greater Than Or Not? ( > > )

Why Can't We Have Some Antixss Literal Html Tag

Nowadays I am learning about web security, XSS, etc. As XSS basically targets a client-agent (web b… Read more Why Can't We Have Some Antixss Literal Html Tag

Making User-made Html Templates Safe

I want to allow users to create tiny templates that I then render in Django with a predefined conte… Read more Making User-made Html Templates Safe

Prevent Html Data From Being Posted Into Form Textboxes

I'm making a web application using PHP in where I have a form that makes entries into a MySQL d… Read more Prevent Html Data From Being Posted Into Form Textboxes

Escape User-generated Content - What Does That Mean?

I am starting to use the Share button from Google. I am actually using the Share link, and at some … Read more Escape User-generated Content - What Does That Mean?

Is It Better To Escape/encode The User Input Before Storing It To Database Or To Store It As It Is In Database And Escape It While Retrieving?

I am using htmlspecialchars() function to prevent XSS attacks. I have doubt regarding what is the b… Read more Is It Better To Escape/encode The User Input Before Storing It To Database Or To Store It As It Is In Database And Escape It While Retrieving?