Setting HSTS Header (Strict-Transport-Security) on CyberPanel

Setting HSTS Header (Strict-Transport-Security) pada CyberPanel

  • Login ke dashboard admin CyberPanel > Website: List Website > Manage (pilih domain) > Configuration: vHost Conf
  • Masukan script hsts header pada bagian bawah
context / {
  allowBrowse             1
  extraHeaders            Strict-Transport-Security "max-age=15552000; includeSubDomains;preload"
  rewrite  {
  }
  addDefaultCharset       off
  phpIniOverride  {
  }
}
  • Verifikasi HSTS header pada browser developer mode

herdiana3389

A system administrator with skills in system administration, virtualization, linux, windows, networking, cloud computing, container, etc.