Avoid “Hotlink Protection” feature in cPanel 11.25, 11.26
In cPanel 11.25 and 11.26 (not tested earlier versions) when you add “Hotlink Protection” in cPanel it will add the appropriate mod_rewrite code to all domains, subdomains, add-on domains. It looks similar to this:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://test-cpanel.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://test-cpanel.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.test-cpanel.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.test-cpanel.com$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]
It actually checks for the line “RewriteEngine on” and does not add it a second time into the .htaccess which is smart… The problem comes when you remove hotlink protection.
cPanel goes through all domains, subdomains, add-on domains once again this time and removes the code but it removes all instances of “RewriteEngine On” in every .htaccess. The problem that comes with this is that if you’re running something such as WordPress, vBulletin, IPB, or any other script that uses mod_rewrite, as most do, suddenly all of your rewrite rules no longer work. Continue reading

There are many qualities that are required in an individual for them to start and grow their own successful web hosting company on their own from the start. Many people see web hosting as something that is simple to provide and requires little to no work which couldn’t be further from the truth. There are many aspects of web hosting that the average first-time web host will not plan for or even think about such as their web site which can be simple but is very important if you are to function as an online business. Other aspects of running a web hosting business range from obtaining the correct licensing as required by local laws to having a basic understanding of business management and accounting. While most are not a jack of all trades, they can often get by based upon what they know and have people they can ask for help if they need it.
I will start this post by saying that I have used Apache for more than 2 years in production environments and I am quite experienced at optimizing Apache to accomplish the goal at hand should it be handling thousands of connections simultaneously to serving dynamic web sites quickly and efficiently while minimizing the memory footprint.
Recent Comments