Skip to content

Instantly share code, notes, and snippets.

@matgargano
Forked from devotoare/.user.ini
Last active May 8, 2020 12:51
Show Gist options
  • Save matgargano/b52baed178b0ac5620f307735a5cb355 to your computer and use it in GitHub Desktop.
Save matgargano/b52baed178b0ac5620f307735a5cb355 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