projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
593d0c2
)
Return 404 for robots.txt
author
Art Cancro
<ajc@citadel.org>
Tue, 14 Sep 2010 22:33:46 +0000
(18:33 -0400)
committer
Art Cancro
<ajc@citadel.org>
Tue, 14 Sep 2010 22:33:46 +0000
(18:33 -0400)
webcit/context_loop.c
patch
|
blob
|
history
diff --git
a/webcit/context_loop.c
b/webcit/context_loop.c
index 266b2f4c7d4a4ffb328bc1dc390236493bec0245..1f140184c5f750bdaf958c8771e54f6e68ec4323 100644
(file)
--- a/
webcit/context_loop.c
+++ b/
webcit/context_loop.c
@@
-805,6
+805,7
@@
InitModule_CONTEXT
RegisterNamespace("NONCE", 0, 0, tmplput_nonce, NULL, 0);
WebcitAddUrlHandler(HKEY("404"), "", 0, do_404, ANONYMOUS|COOKIEUNNEEDED);
+ WebcitAddUrlHandler(HKEY("robots.txt"), "", 0, do_404, ANONYMOUS|COOKIEUNNEEDED);
/*
* Look for commonly-found probes of malware such as worms, viruses, trojans, and Microsoft Office.
* Short-circuit these requests so we don't have to send them through the full processing loop.