parked domains and htaccess disabling

dandadude

Well-Known Member
Apr 14, 2011
62
1
58
Hi!

If I understand well, the purpose of parked domains is to point to a main site's frontpage.

My problem is that .htaccess can be used to turn a parked domain to an addon domain with mod_redirect and stuff.

Isn't this a big problem for many of you? Is there any way to disable the use of .htaccess for parked domains to make sure that clients don't "cheat"?

Thanks,
Dan
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
In the Apache configuration, you could set AllowOverride to none to prevent .htaccess period from being used:

Code:
AllowOverride None
I have to warn that this is going to break a huge number of sites working such as WordPress and others that require .htaccess for rewrites. The very small percentage of customers using parked domains as addons is not going to be that large in comparison to those using WordPress, Joomla, etc. who will no longer have working sites. As such, I'm not going to provide the full steps yet on how to perform the above as I'd like to give you a moment to reconsider taking such drastic action for this very small group of users.

If you wanted something that will only prevent using a redirect from moving a parked domain to another location, there isn't any setting that would prevent that. The options are to disable the use of .htaccess entirely or to disable mod_rewrite
 

dandadude

Well-Known Member
Apr 14, 2011
62
1
58
Hi!

Thanks very much for the answer.

I think this feature is something that is much needed, because hosting companies using Cpanel can loose many money because of this, or they have to somehow monitor the "cheating". If possible, I would like to request a fix considering this problem!

Thank you,
Daniel

p.s.: Because of this problem, I don't know currently how I will be able to offer parked domains with being calm :)
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
Unfortunately, there is no way to prevent this from happening. That's the issue. This isn't something that can be fixed. If you want to allow rewrite rules or .htaccess to work with sites that use those such as WordPress and/or Joomla, you cannot disable mod_rewrite nor .htaccess files and there's no special rewrite rule for parked domains (it uses a regular redirect or rewrite).

I do agree that you shouldn't offer parked domains if you are concerned. That would resolve the issue from happening, since there's no viable method to prevent it.