Are you tired of people stealing your precious images? I know I am and I have gathered this simple tutorial to help you protect those images, zip, .exe and other file types.
This tutorial uses mod_rewrite to stop people from using your bandwidth. You must check with your host to see if mod_rewrite is on and if you have access to that feature.
Files to edit:
.htaccess
Steps :
First you need to create a .htaccess file, notepad usually is the best means for this or just copy an already created .htaccess file and delete it's content.
Next paste the following codes inside the file. I will explain later what this does.
Just looking at the codes I am pretty sure you can figure out where to change but I will still explain. The codes above basically makes sure that the image/files are only shown on your domain by checking the referer to match "yoursite.com". If it an outside domain linking to your images they will be displayed an image instead, you can link to any image you wish them to see.
Now to explain a little further. As you can see there are a number of file extensions (.gif, .png...). You can remove or add any extensions you need.
Change "yoursite" to you actual website and also change the link to the image that they should see if linking from another domain.
Now place this .htaccess file in any folder where you want to block access to your files.
If you would like us to make the changes for you, please contact us by using this button.