Disabling eval with .htaccess

244 Views Asked by At

For various reasons (for example, phpMyAdmin stops working), it is not practical (for those higher up) to disable eval by adding:

[suhosin]
suhosin.executor.disable_eval = On

in php.ini.

Can eval be disabled with .htaccess, and if it can, how? What are the prerequisites, and what would I need to add to .htaccess in order to make it work?

The hosting is dedicated, runs on PHP 5.4.16, with phpMyAdmin 4.0.10.1. Updates of everything involved (PHP, phpMyAdmin, MariaDB, the webapps running, PHP extensions, etc) can not be done at the moment (or in any forseeable future), so what I'm looking for is a patch-up.

0

There are 0 best solutions below