By Sam Ilan · Tip and Guides · Thursday, May 8, 2008 7:07 · 1 Comment

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

Don't forget to Subscribe!
 

Previous Posts

Advertisements

Computer Book-The Internet for Dummies Quick Reference
US $2.49 (0 Bid)
End Date: Saturday May-17-2008 22:11:53 PDT
Bid now | Add to watch list

Perl for Dummies by Paul Hoffman Book Computer Internet
US $0.99 (1 Bid)
End Date: Sunday May-18-2008 12:53:02 PDT
Bid now | Add to watch list

Lot Of 6 **NEW** Books for the Computer/Internet
US $3.00 (0 Bid)
End Date: Sunday May-18-2008 14:25:27 PDT
Bid now | Add to watch list

This entry was posted by Sam Ilan on Thursday, May 8th, 2008 at 7:07 am and is filed under Tip and Guides.

Taged as: , ,

You can leave a response, or trackback from your own site.

1 response so far!

  • 1 ShowUs.info News Votes ~ May 8, 2008 at 7:10 am

    Easy way to allow hotlinking on your files…

    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 direct…

Leave a Comment

Incoming search terms for this post