diff options
author | Simon McVittie <smcv@debian.org> | 2014-10-11 09:43:34 +0100 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2014-10-12 17:45:27 +0100 |
commit | 56f8223f9594ae687099dada0c138d669a6f931f (patch) | |
tree | 07a5ef41fb011ff442622d76f5c3c1113924d3e1 /IkiWiki.pm | |
parent | d7e749572c9e6c731d9e90f95bfedb200d98ddca (diff) | |
download | ikiwiki-56f8223f9594ae687099dada0c138d669a6f931f.tar ikiwiki-56f8223f9594ae687099dada0c138d669a6f931f.tar.gz |
Set default User-Agent to something that doesn't mention libwww-perl
It appears that both the open-source and proprietary rulesets for
ModSecurity default to blacklisting requests that say they are
from libwww-perl, presumably because some script kiddies use libwww-perl
and are too inept to set a User-Agent that is "too big to blacklist",
like Chrome or the iPhone browser or something. This seems doomed to
failure but whatever.
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r-- | IkiWiki.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm index 570c185ad..1043ef402 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -543,7 +543,7 @@ sub getsetup () { }, useragent => { type => "string", - default => undef, + default => "ikiwiki/$version", example => "Wget/1.13.4 (linux-gnu)", description => "set custom user agent string for outbound HTTP requests e.g. when fetching aggregated RSS feeds", safe => 0, |