summaryrefslogtreecommitdiffstats
path: root/etc/phpshellsessions
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2012-01-05 19:55:41 -0500
committerChris Buechler <cmb@pfsense.org>2012-01-05 19:55:41 -0500
commitb901ea5724067abdb8731018b31ec2c5051a994c (patch)
tree68c0b9a15290a195cd5cd19c2c6b35e11f05a88e /etc/phpshellsessions
parent9a296f50e8a7cd9d1379c8be04bacb9b31d7bb78 (diff)
downloadpfsense-b901ea5724067abdb8731018b31ec2c5051a994c.zip
pfsense-b901ea5724067abdb8731018b31ec2c5051a994c.tar.gz
add a shortcut to disable referer check
Diffstat (limited to 'etc/phpshellsessions')
-rw-r--r--etc/phpshellsessions/disablereferercheck11
1 files changed, 11 insertions, 0 deletions
diff --git a/etc/phpshellsessions/disablereferercheck b/etc/phpshellsessions/disablereferercheck
new file mode 100644
index 0000000..97d444a
--- /dev/null
+++ b/etc/phpshellsessions/disablereferercheck
@@ -0,0 +1,11 @@
+global $config;
+
+$config = parse_config(true);
+
+$config['system']['webgui']['nohttpreferercheck'] = true;
+
+echo "Disabling HTTP referer check...";
+
+write_config("PHP shell disabled HTTP referer check");
+
+echo "done.\n";
OpenPOWER on IntegriCloud