BACK ⟲
Scris de Marius Chiriac

Ce este si cum sa folosesti HSTS

HTTP Stric Transport Security sau pe scurt HSTS este o metoda prin care un site ce foloseste HTTPS sa fie fortat sa foloseasca conexiuni securizate. Este un best practice pentru website-urile wordpress (si orice alt website ce foloseste HTTPS in general) care sporeste securitatea blocand atacurile de tipul “man-in-the-middle” ce pot fura datele transmise pe internet cand nu sunt encriptate.

HSTS este un header de securitate care rezolva urmatoarele probleme:
– redirectioneaza automat catre versiunea HTTPS a site-ului tau orice incercare a unui vizitator de accesare prin HTTP
– previne suprascierea mesajelor de certificat invalid lucru care protejeaza vizitatorii
– previne furarea de cookieuri care contin informatii private cand cineva foloseste conexiuni nesecurizate
– previne atacurile de tipul “man-in-the-middle”, care se folosesc de faptul ca datele sunt transmise nesecurizat prin HTTP, interceptand si modificand aceste informatii

Implementarea de HSTS la website-ul tau se poate face in urmatorul mod:

1. Pentru server Apache se va adauga urmatoarea linie de cod in fisierul tau de virtual hosts:

Header always set Strict-Transport-Security max-age=31536000

2. Pentru server NGINX se va adauga urmatoarea linie de cod in config:

add_header Strict-Transport-Security max-age=31536000

Exista posibilitatea ca un site ce foloseste HTTPS si HSTS sa fie adaugat intr-o lista de “preload” (preincarcare) ce este adaugata direct in browser si este folosita pentru fortarea deschiderii site-ului prin HTTPS la nivel de browser. Cerintele pentru a intra in aceasta lista sunt mai stringente si le poti verifica pe hstspreload.org, dar trebuie sa fii absolut sigur ca doresti acest lucru pentru ca este foarte dificil sa fii scos de pe aceasta lista.

Se poate verifica daca este implementat corect HTST prin cateva metode simple. Una este sa folosesti Google Chrome Devtools intrand in tab-ul “Network” si sa verifici headerele pentru valoarea “strict-transport-security: max-age=31536000” sau sa folosesti un o aplicatie online ce poate scana site-ul tau precum securityheaders.io

Daca vrei securitate sporita, nu ezita sa activezi HSTS pe website-ul tau.

More posts

What large and small companies ask of branding

Small companies ask branding for a clear identity, while large companies ask for a system that keeps it the same in dozens of places. In the INOVEO archive, companies with revenue above 250 million lei [...]

Read More... from Ce este si cum sa folosesti HSTS

Read the post

What each industry asks of its brand

Brand accounts for 32% of the purchase decision in technology and 67% in luxury, according to Interbrand. That is why each industry asks something different of its brand, depending on where and how fast its [...]

Read More... from Ce este si cum sa folosesti HSTS

Read the post

Which branding work you do together, and in what order

Branding work delivers results when it is done as a system, in the order in which each piece supports the next: strategy first, then identity, then applications. The wrong order costs twice: an identity made [...]

Read More... from Ce este si cum sa folosesti HSTS

Read the post

Branding for companies outside Bucharest

About 73% of Romania’s economy is produced outside the capital, and the companies there have a brand argument that is hard to copy: the place they come from. In the INOVEO archive, 45% of clients [...]

Read More... from Ce este si cum sa folosesti HSTS

Read the post

INOVEO
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.