Is there a way to detect if site is being accessed via proxy server?
I know not a cake specific question but hoping someone might know.
Something like this in AppController beforeFilter:
$request_from = $this->request->domain($tldLength = 1);
if ($request_from != 'my_domain.com') {
$this->Session->destroy();
//$this->Controller->redirect(null, 403, true);
}
Thanks all
Dave
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.