mirror of https://gitlab.com/bashrc2/epicyon
Block attempts to access keys at an earlier stage
parent
9cbd7fe1aa
commit
50ad8aa6f2
|
@ -319,6 +319,12 @@ def daemon_http_get(self) -> None:
|
||||||
http_404(self, 145)
|
http_404(self, 145)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
# keys directory should not be accessible
|
||||||
|
if self.path.startswith('/keys/'):
|
||||||
|
print('GET HTTP Attempt to get keys file ' + self.path)
|
||||||
|
http_404(self, 145)
|
||||||
|
return
|
||||||
|
|
||||||
# php
|
# php
|
||||||
if self.path.endswith('.php'):
|
if self.path.endswith('.php'):
|
||||||
print('GET HTTP Attempt to access PHP file ' + self.path)
|
print('GET HTTP Attempt to access PHP file ' + self.path)
|
||||||
|
|
Loading…
Reference in New Issue