removed previous code I added to get away from bad referrers; moved early.
This commit is contained in:
parent
3c5d75c33d
commit
f092fe5398
|
@ -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
|
||||
|
|
Reference in New Issue