Home » Restrict Robots.txt and .htaccess Editing using SiteSEO
Restrict Robots.txt and .htaccess Editing using SiteSEO

Overview

Enhance security by preventing unauthorized editing of robots.txt and .htaccess files directly from the WordPress admin.

Blocking robots.txt File Editing

  • To block robots.txt file edited via the WordPress Dashboard -> SiteSEO -> PRO -> Robots.txt tab, insert the following code into your wp-config.php file.
define('SITESEO_BLOCK_ROBOTS', true);

Blocking htaccess File Editing

  • To block htaccess file edited via the WordPress Dashboard -> SiteSEO -> PRO -> htaccess tab, insert the following code into your wp-config.php file.
define('SITESEO_BLOCK_HTACCESS', true);
      Was this page helpful?
      Newsletter Subscription
      Subscribing you to the mailing list