If you want to disable the customers area, you can achieve this but adding a simple hook which is available for the customers area.
Method 1
In application/helpers create file with name my_functions_helper.php and add the following code:
<?php
hooks()->add_action('after_clients_area_init', 'my_disable_customers_area');
hooks()->add_action('clients_authentication_constructor', 'my_disable_customers_area');
// Uncomment to disable customers area knowledge base as well
// hooks()->add_action('customers_area_knowledge_base_construct', 'my_disable_customers_area');
function my_disable_customers_area(){
header('HTTP/1.0 401 Unauthorized');
die('Access not allowed');
}
Now nobody will be able to access in the clients area.