Addon domains definitely makes things tricky. Especially for hyperlink protection.
Let’s say:
- Your main domain is http://www.domain1.com.
- Your addon domain is http://www.domain2.com.
- In cPanel, you set up your addon domain as http://www.domain1.com/domain2, which is the same as domain2.domain1.com.
To set up hyperlink protection for your addon domain, you need to do two things:
- Add your addon domain to the hyerplink protection “enabled” list.
Go to cPanel > Hyperlink Protection and add all three variations of the addon domain to the “enabled” list. - Create a separate htaccess file for your addon domain.
I simply copied all the referer statements from my domain1 htaccess file into a new file and copied it to my domain2 root folder.