\Xframer
Silverstripe X-Framer
- Author: <andrewm@cyber-duck.co.uk>
- License: MIT License https://github.com/Cyber-Duck/Silverstripe-X-Framer/blob/master/LICENSE
Synopsis
class Xframer
{
- // methods
- public static void init()
- private static void setUserIP()
- private static void setExcludedIPs()
Members
private
-
$excluded
An array of IP addresses to exclude from returning X-Frame header - $headers
-
$ip
The current user IP address
Methods
private
- setExcludedIPs() — Set an array of IPs to exclude X-Frame headers from
- setUserIP() — Set the current user IP
public
- init() — Run the plugin by setting and checking the current user IP and setting an X-Frame header if required