Skip to content

Instantly share code, notes, and snippets.

@rsharrer
Created September 26, 2013 13:55
Show Gist options
  • Save rsharrer/6714594 to your computer and use it in GitHub Desktop.
Save rsharrer/6714594 to your computer and use it in GitHub Desktop.
Prevent direct file access to functions.php
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'functions.php' == basename($_SERVER['SCRIPT_FILENAME']))
{
die ('No access!');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment