I've created (after some strange experiences with users in my hosting) small php patch (for version 4.3.10), which disables remote includes.This patch doesn't work with Zend Optimizer enabled unfortunately :(
Download the patch there. After applying, see php.ini-dist and readme.security
example of bad code:
example of better code:
Links: