removed previous code I added to get away from bad referrers; moved early.

This commit is contained in:
fpeters 2005-02-04 17:19:12 +00:00
parent 3c5d75c33d
commit f092fe5398
1 changed files with 0 additions and 7 deletions

View File

@ -958,13 +958,6 @@ class AbstractStation(object):
uriPathFragments = contentUriPathFragments
# There is no content. The walk is finished (at least, it seems so) => call the default
# function.
# but first we may want to forbid a few referrers
bad_referrers = self.getConfigList("yep:badReferrers/yep:host", default = [])
if environs.getVar("httpRequestHandler").headers.get("Referer", "") in bad_referrers:
return environs.getVar("httpRequestHandler").outputErrorAccessForbidden(
self.getUriAbsolutePath())
try:
if command is None:
function = self.doHttpAccess