System.Web.Security.AntiXss Namespace

.NET Framework (current version)
 

Contains methods that you can use to encode strings in order help you protect your application against cross-site scripting (XSS) attacks and LDAP injection attacks.

ClassDescription
System_CAPS_pubclassAntiXssEncoder

Encodes a string for use in HTML, XML, CSS, and URL strings.

EnumerationDescription
System_CAPS_pubenumLowerCodeCharts

Specifies values for the lower region of the UTF-8 Unicode code charts, from U0000 to U0FFF.

System_CAPS_pubenumLowerMidCodeCharts

Specifies values for the lower-middle region of the UTF-8 Unicode code charts, from U1000 to U1EFF.

System_CAPS_pubenumMidCodeCharts

Specifies values for the middle region of the UTF-8 Unicode code charts, from U1F00 to U2DDF.

System_CAPS_pubenumUpperCodeCharts

Specifies values for the upper region of the UTF-8 Unicode code charts, from UA8E0 to UFFFD.

System_CAPS_pubenumUpperMidCodeCharts

Specifies values for the upper-middle region of the UTF-8 Unicode code charts, from U2DE0 to UA8DF.

The encoding algorithms look for a prescribed set of characters that are considered safe and encode all other characters. (This is sometimes referred to as "safe-listing" or "whitelisting.")

Return to top
Show: