If you mean via restrictive access, I think you might be able to customise your 403’s (maybe check the Wiki) - if not, one method on DreamHost might be to use a standard missing.html document and place restrictions on php files in your includes directory via .htaccess
Standard missing.html (located in domain root)
404 Not Found
The requested URL was not found on this server.
Restrictive [b].htaccess[/b] (located in includes directory)
ErrorDocument 403 http://[color=#0000CC]domain.com[/color]/missing.html
<Files ~ "\.php$">
deny from all
</Files>The .htaccess file above would deny access to *.php files and redirect to the missing.html document.
You could probably use ErrorDocument 403 http://domain.com to redirect back to main site.
Maximum Cash Discount on any plan with MAXCASH
How To Install PHP.INI / ionCube on DreamHost