I am going to take a look to see if there is a simple way to alter the script so that the function when disabled in Admin can return a proper HTTP/1.1 404 Not Found header and error message on any and all access attempts.
For the moment, a simple .htacess fix can be implemented using:
Code:
# ErrorDocument 404
ErrorDocument 404 /index.php?main_page=page_not_found
# Rewrite requests for 'tell a friend' to a non-existent internal path
# The rewrite triggers Apache to send a 404 header and 404 error page.
RewriteCond %{QUERY_STRING} main_page=tell_a_friend
RewriteRule ^(index.php)?$ /path-does-not-exist [L]
Rewrites must always be listed after any and all redirects.