Skip to content

Instantly share code, notes, and snippets.

@leoborlot
Forked from kuzmany/security_local.php
Created August 21, 2023 19:54
Show Gist options
  • Select an option

  • Save leoborlot/95f93defc71b485a04b819ad4a099463 to your computer and use it in GitHub Desktop.

Select an option

Save leoborlot/95f93defc71b485a04b819ad4a099463 to your computer and use it in GitHub Desktop.
<?php
/*
* @copyright 2019 Mautic Contributors. All rights reserved
* @author Mautic
*
* @link http://mautic.org
*
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
// load basic Mautic security
include_once 'security.php';
// disable upgrade notification
$container->setParameter('mautic.security.disableUpdates', true);
// hide Identify visitor by device fingerprint and Identify visitors by IP options
$myCutomRestrictedConfigFields = ['track_by_fingerprint', 'track_contact_by_ip'];
$restrictedConfigFields = array_merge($restrictedConfigFields, $myCutomRestrictedConfigFields);
$container->setParameter('mautic.security.restrictedConfigFields', $restrictedConfigFields);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment