2006-08-12 01:46:17 +00:00
|
|
|
|
|
|
|
Configuration Ideas
|
|
|
|
|
|
|
|
Here are some theoretical configuration ideas that we could implement some
|
2006-08-14 03:05:28 +00:00
|
|
|
time. Note the naming convention: %Namespace.Directive
|
2006-08-12 01:46:17 +00:00
|
|
|
|
|
|
|
%Attr.IDPrefix - prefix all ids with this
|
2006-08-14 03:05:28 +00:00
|
|
|
|
2006-08-12 01:46:17 +00:00
|
|
|
%Attr.RewriteFragments - if there's %Attr.IDPrefix we may want to transparently
|
|
|
|
rewrite the URLs we parse too. However, we can only do it when it's a pure
|
|
|
|
anchor link, so it's not foolproof
|
|
|
|
|
2006-08-14 03:05:28 +00:00
|
|
|
%Attr.ClassBlacklist,
|
|
|
|
%Attr.ClassWhitelist,
|
2006-11-12 04:02:27 +00:00
|
|
|
%Attr.ClassPolicy - determines what classes are allowed. When
|
|
|
|
%Attr.ClassPolicy is set to Blacklist, only allow those not in
|
2006-08-14 03:05:28 +00:00
|
|
|
%Attr.ClassBlacklist. When it's Whitelist, only allow those in
|
|
|
|
%Attr.ClassWhitelist.
|
2006-08-12 01:46:17 +00:00
|
|
|
|
2006-08-14 03:05:28 +00:00
|
|
|
%Attr.MaxWidth,
|
|
|
|
%Attr.MaxHeight - caps for width and height related checks.
|
2006-11-12 19:26:49 +00:00
|
|
|
(the hack in Pixels for an image crashing attack could be replaced by this)
|
2006-08-12 01:46:17 +00:00
|
|
|
|
2006-11-12 19:26:49 +00:00
|
|
|
%URI.Munge - will munge all external URIs to a different URI, which redirects
|
2006-08-14 03:05:28 +00:00
|
|
|
the user to the applicable page. A urlencoded version of the URI
|
|
|
|
will replace any instances of %s in the string. One possible
|
|
|
|
string is 'http://www.google.com/url?q=%s'. Useful for preventing
|
2006-11-12 19:26:49 +00:00
|
|
|
pagerank from being sent to other sites, but can also be used to
|
|
|
|
redirect to a splash page notifying user that they are leaving your
|
|
|
|
website.
|
2006-08-12 01:46:17 +00:00
|
|
|
|
2006-08-14 03:05:28 +00:00
|
|
|
%URI.AddRelNofollow - will add rel="nofollow" to all links, preventing the
|
|
|
|
spread of ill-gotten pagerank
|
2006-08-12 01:46:17 +00:00
|
|
|
|
2006-08-14 03:05:28 +00:00
|
|
|
%URI.RelativeToAbsolute - transforms all relative URIs to absolute form
|
2006-11-12 04:02:27 +00:00
|
|
|
|
|
|
|
%URI.HostBlacklist - strings that if found in the host of a URI are disallowed
|
|
|
|
%URI.HostBlacklistRegex - regexes that if matching the host are disallowed
|
|
|
|
%URI.HostWhitelist - domain names that are excluded from the host blacklist
|
|
|
|
%URI.HostPolicy - determines whether or not its reject all and then whitelist
|
|
|
|
or allow all in then do specific blacklists with whitelist intervening.
|
|
|
|
'DenyAll' or 'AllowAll' (default)
|
|
|
|
|
|
|
|
%URI.DisableIPHosts - URIs that have IP addresses for hosts are disallowed.
|
2006-11-12 19:26:49 +00:00
|
|
|
Be sure to also grab unusual encodings (dword, hex and octal), which may
|
|
|
|
be currently be caught by regular DNS
|
|
|
|
%URI.DisableAbsoluteDNS - Remove extra dots after host names that trigger
|
|
|
|
absolute DNS. While this is actually the preferred method according to
|
|
|
|
the RFC, most people opt to use a relative domain name relative to . (root).
|
|
|
|
%URI.DisableIDN - Disallow raw internationalized domain names. Punycode
|
|
|
|
will still be permitted.
|
|
|
|
|
|
|
|
%URI.ConvertUnusualIPHosts - transform dword/hex/octal IP addresses to the
|
|
|
|
regular form
|
2006-11-12 04:02:27 +00:00
|
|
|
|
|
|
|
%URI.DisableExternalResources - disallow resource links (i.e. URIs that result
|
|
|
|
in immediate requests, such as src in IMG) to external websites
|
|
|
|
|