Website FOr Free

Visit this site.

Sunday, December 20, 2009

Image and Copyright protection on your website and blogs. Right Click Disabling

1. Disable Right click:

You can use this little javascript to stop people copying your images. This is not 100% secure becaause they can view the image urls with ‘view > source’ feature of the browser and can copy your images.
Here is the javascript. You have to paste it with in the ‘head’ tags of your html code.

2. .htaccess method:

When you are on Apache server, you can use ‘Rewrite Mode’ on your server. Just ask your web host that your web site has  Rewrite mode enabled or not.
You have to keep a ‘.htaccess’ file in the root directory if you want to protect your entire domain images from hot linking. Or if you want to protect images in one folder you can keep this file in that particular folder.
How to create the ‘.htaccess’ file:
1. Open your Notepad or any text editor.
2. Paste these lines -
Rewriteengine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://yourdomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.your_other_domain.com/.*$ [NC]
RewriteRule \.(gif|jpg)$ http://www.yourdomain.com/error.gif

Third,fourth and fifth lines are your domain names or domain names that you want to give access to your image files. You can add as many domain names as you want.
Change ‘yourdomain’ to your web site name. You can add or delete file extentions as per your requirement in the last line and replace error.gif with your gif name.
Save this as ‘htaccess.txt’ on your computer.
3. Upload this file by ASCII mode by your FTP software.
4. Rename it as .htaccess.

Using cgi sctipts:

If you don’t have ‘Rewrite Mode’ on your server, you can use CGI scripts to protect your images and variety of files.
Ace Bandwidth Protector: An excellent FREE script! See the demo on the web site.


Web site Protection Tips:

* Step One: Protect folders by robots.txt – Stop search engine robots indexing Your private folders by ‘robots.txt’.
 
* Step Two: Protect folders by index file – Protect folders – Keep an INDEX file.
 
* Step Three: Protect folders by permissions – Folder protection – Directory and script file permissions.
 
* Step Five: Protect your downloads – Protect your downloads by password folder protection.
 
* Step Six: Protect your affiliate links – Affiliate link cloacking – Protect or hide your affiliate links.
 
* Step Seven: Protect Images – Image protection – Stop image hotlinking.