Restrict Access to Addon Domains

I run several websites on a single hosting plan. While some web developers do this to save money, I did this to save time. When you have all your hosted sites under one cPanel account(or in the same HTTP folder), it is easy to manage them. One problem you need to resolve is that add-on domain databases can be access through the primary domain. It can be fixed by adding a code to our good old .htaccess file in the sub-domain directory that host the files for the primary domain. The .htaccess file in each and every directory of the site must be edited(not the admin folders of CMSes) to include this code. Continue reading Restrict Access to Addon Domains