PluginProbe
GD Security Headers / 1.4
GD Security Headers v1.4
trunk 1.0 1.1 1.1.1 1.2 1.3 1.4 1.5 1.6 1.6.1 1.7 1.7.1 1.8 1.9
gd-security-headers / core / functions.php

functions.php in GD Security Headers 1.4, at core/functions.php

32 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 if (!defined('ABSPATH')) { exit; }
4
5 function gdsih_referrer_policies_list() {
6 return array(
7 'no-referrer' => __("Do not send referrer", "gd-security-headers"),
8 'no-referrer-when-downgrade' => __("No referrer when downgrade", "gd-security-headers"),
9 'same-origin' => __("Same origin", "gd-security-headers"),
10 'origin' => __("Origin", "gd-security-headers"),
11 'strict-origin' => __("Strict origin", "gd-security-headers"),
12 'origin-when-cross-origin' => __("Origin when cross origin", "gd-security-headers"),
13 'strict-origin-when-cross-origin' => __("Strict origin when cross origin", "gd-security-headers"),
14 'unsafe-url' => __("Unsafe URL", "gd-security-headers")
15 );
16 }
17
18 function gdsih_strict_transport_security_list() {
19 return array(
20 'none' => __("Nothing", "gd-security-headers"),
21 'includeSubDomains' => __("Include Subdomains", "gd-security-headers")
22 );
23 }
24
25 function gdsih_x_frame_options_list() {
26 return array(
27 'DENY' => __("Deny", "gd-security-headers"),
28 'SAMEORIGIN' => __("Same origin", "gd-security-headers"),
29 'ALLOW-FROM' => __("Allowed from listed domains", "gd-security-headers")
30 );
31 }
32