php - Determine if visitor connected over SSL on CloudFlare Pro -
we have site running on cloudflare pro uses supplied certificate one-click encryption. our site has "optional" ssl users. it's forum, run proxy script detects if posted image not using https protocol , automatically proxies image through script running on our server maintain security , our lovely green lock!
my issue introduces unnecessary load on our servers when users aren't using https able detect if or not. however, cloudflare server connecting ours no matter on http (because using one-click ssl on cloudflare) our php script reports http , never proxies images when user using https. there way cloudflare report user using ssl?
found answer, send header x-forwarded-proto. it's https ssl , http normal!
Comments
Post a Comment