Comprobar si navegas por https en PHP

About the work

El otro día un compañero me preguntó cómo era el código en PHP para saber si se estaba navegando por HTTPS (entorno seguro) o no. He aquí una de esas típicas preguntas que surgen pocas veces a lo largo de los años y tras ver en su momento, muchas veces olvidamos. La excusa perfecta para publicar el primer tip del blog ;)
La entrada Comprobar si navegas por https en PHP aparece primero en rolandocaldas.com.

Education, Informative
php
tips php
tips

Copyright registered declarations

Rolando Caldas Sánchez
Author
Consolidated inscription:
Attached documents:
0
Copyright infringement notifications:
0
Contact

Notify irregularities in this registration

Print work information
Work information

Title Comprobar si navegas por https en PHP
El otro día un compañero me preguntó cómo era el código en PHP para saber si se estaba navegando por HTTPS (entorno seguro) o no. He aquí una de esas típicas preguntas que surgen pocas veces a lo largo de los años y tras ver en su momento, muchas veces olvidamos. La excusa perfecta para publicar el primer tip del blog ;)
La entrada Comprobar si navegas por https en PHP aparece primero en rolandocaldas.com.
Work type Education, Informative
Tags php, tips php, tips

-------------------------

Registry info in Safe Creative

Identifier 1307225463054
Entry date Jul 22, 2013, 5:20 PM UTC
License Creative Commons Attribution Non-Commercial Share Alike 3.0

-------------------------

Copyright registered declarations

Author. Holder Rolando Caldas Sánchez. Date Jul 22, 2013.


Information available at https://www.safecreative.org/work/1307225463054-comprobar-si-navegas-por-https-en-php
© 2026 Safe Creative