Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 08-01-2007, 07:02 PM   #1 (permalink)
Osiris's Avatar
 

Join Date: Jan 2005

Location: Kentucky

Posts: 32,170

Osiris is a jewel in the roughOsiris is a jewel in the roughOsiris is a jewel in the rough

Send a message via ICQ to Osiris Send a message via AIM to Osiris Send a message via MSN to Osiris Send a message via Yahoo to Osiris Send a message via Skype™ to Osiris
Default How to setup Hotlink Protection

Hotlinking is a technique that is frowned upon on the Internet. This happens if you upload a file to your webserver and someone else links to that file directly effectively using your bandwidth to display and / or spread the file on his website. This happens most often with images but it could also be happening with all other files such as zip or pdf.
The best way to stop someone hotlinking your files is to setup a htaccess file a directory that you want to protect. All subdirectories are protected as well by this. If you use a webhosting account you should make sure that you can actually use .htaccess files on it before you try and implement this feature.
To use them you simply upload a file called .htaccess to a directory on your website and edit it with the following information to prevent hotlinking:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?ghacks.net [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L]
You have to edit the domain name of course and add possible other filetypes to the list in the fourth line. If you have another domain that should be allowed to hotlink your files you simply add the third line again and edit the domain name accordingly.
If you have a Wordpress blog and can’t use .htaccess you could use the Wordpress plugin called Hotlink Protection which basically does the same thing but does not allow the addition of other domain names.
__________________
Osiris is online now  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft Copy Protection Cracked Again Osiris Windows Operating Systems and Software 5 07-19-2007 02:48 AM
Network Setup joey1 Computer Networking & Internet Access 10 07-12-2007 11:18 PM
windows 2000 setup cd uzi9mm Windows Operating Systems and Software 0 05-21-2007 04:35 PM
Lost Boot setup D.Arbib Windows Operating Systems and Software 5 05-10-2007 09:42 PM
What virus software? Mr. tech Virus - Spyware Protection / Detection 18 04-30-2007 08:45 AM