Fixed isSecure method
Expanded upon the getRemoteAddr method to disallow use of CDN IP header