preventing random access to plugin files
-
an automated process attempted to directly access some PHP files in a plugin.
The result(s) were random PHP errors in the log file.
Clearly the plugin writer assumed that access would always be by “an acceptable path”.Would this be a bad thing to do to keep me safe from plugin misbehavior?
1. create a .htaccess file in the plugins directory
2. add php_value auto_prepend_file /path…/abs.phpwhere abs.php is
if (!defined('ABSPATH')) exit;
The intention is to have every PHP file quit before doing anything if not being called in the WordPress environment.
Opinions?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘preventing random access to plugin files’ is closed to new replies.