Fabrix
  • Serviços
  • WordPress Plugins
    • WP Mobile Edition
  • Scripts & Snippets
  • Monitors the .htaccess file, and Sends email when a change is detected.

Monitors the .htaccess file, and Sends email when a change is detected.


Upload this file to the directory where the .htaccess file resides (root). Change only the parameters below:

$ewd_make_txt_dir = "log";	                //create directory for the txt file (root)
$ewd_txt_file_name = "_monitor_htaccess.txt";   //name of the txt file created
$ewd_email = "your-email@domain.com";           //email will be sent to
$ewd_subject = "WARNING(.htaccess)CHANGED";	//email subject

In wp-config.php file add require_once(ABSPATH."_check_htaccess.php"); line 37.

.htaccess file from now on, will trigger an ALERT email to the owner.

To check it out for yourself, after uploading & including this file into the website, upload a copy of your local .htaccesss file back on the server (MAKE SURE YOU HAVE THE LATEST COPY FROM THE SERVER),then navigate to the home page of your website / blog.

If everything is running as it should, an email will be sent to the address you have entered bellow.

Tips, tricks, suggestions, and comments.

Tags

  • .htaccess


© Copyright. . Fabrix. All Rights Reserved. Terms | SiteMap