Skip to content

Instantly share code, notes, and snippets.

@devotoare
Created March 21, 2018 00:52
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save devotoare/8c96a0ea2991abc30552d5c868e1a866 to your computer and use it in GitHub Desktop.
Save devotoare/8c96a0ea2991abc30552d5c868e1a866 to your computer and use it in GitHub Desktop.
Wordfence for Trellis/Bedrock
; Wordfence WAF
auto_prepend_file = ‘/srv/www/example.com/current/config/wordfence-waf.php’
; END Wordfence WAF
<?php
// Before removing this file, please verify the PHP ini setting `auto_prepend_file` does not point to this.
if (file_exists('/srv/www/example.com/current/web/app/plugins/wordfence/waf/bootstrap.php')) {
define("WFWAF_LOG_PATH", '/srv/www/example.com/logs/wflogs/');
include_once '/srv/www/example.com/current/web/app/plugins/wordfence/waf/bootstrap.php';
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment