Returning 404 on /Security, instead of Controller.ss template

We shouldn't expose unsolicited content on public URLs,
mainly because it impacts SEO.
This commit is contained in:
Ingo Schommer 2013-08-20 21:12:55 +02:00
parent 46362175f0
commit 18ae4c5db6

View File

@ -280,6 +280,9 @@ class Security extends Controller {
$this->response->addHeader('X-Frame-Options', 'SAMEORIGIN'); $this->response->addHeader('X-Frame-Options', 'SAMEORIGIN');
} }
public function index() {
return $this->httpError(404); // no-op
}
/** /**
* Get the login form to process according to the submitted data * Get the login form to process according to the submitted data