Easy way to allow hotlinking on your files

Hotlinking is not always mean bad thing for your website. Sometimes you may find it necessary to disable hotlink-protection for a specific directory. For example if you have a free image hosting service, it difficult to prevent image hot linking from your site, obviously because hotlinking is what people will do when they use your free image sharing service.

By default, htaccess rules apply to the directory in which it is located, as well as all subdirectories contained therein. By adding a simple code on the .htaccess in the directory you simply disable the hot linking prevention on that particular directory only.

# disable hotlink protection
RewriteEngine off

If you can’t find the .htaccess in the directory then create a file from cPanel filemanager, add those code and save

After opening hotlink prevention on my free image sharing service, the site become free image hosting that allowed hotlinking

Post from: My Daily OpinionEasy way to allow hotlinking on your files

More: continued here

Leave a Reply