There are lots of reasons to want to make sure images on your website are secure. Perhaps you want to share pictures of your family, but you don’t want other people saving them. Or maybe you are a photographer and you want to avoid having your copyright violated. Whatever your reason, there are a few steps you can take to protect your images. The only fail-proof strategy, however, is to not put the images online.
Place a blank index file in your images folder. Go to your website’s control panel and open the folder where you save the images for your website. Insert a blank index.html or index.php file. This prevents people from going directly to your image folder and scrolling through every image you have saved.
Hide your source code. If a user clicks on \"View\" and chooses \"Source\" at the top of his browser, he can see all of the coding for a particular web page, including the image URLs. All a user has to do is go directly to the URL and save the image. Avoid this by going to your web page’s source and finding the first tag that says <html>. Put your cursor in front of that tag and keep hitting enter. Save the changes. This won’t completely hide the source, but it will push it down so far out of view that most will think that you don’t have any source code.
Test your website. Go to your website and view all of the pages to make sure you added the code correctly. If any code is showing up as text, then you did not insert it in its entirety. Also, test to see if the copy and paste, and view source functions are still enabled.
Tips & Warnings
- No technique is able to make an image 100-percent secure. If someone really wants to have one of your images, they will find a way to bypass any protective measures you put in place. <br /><br />Disabling right-click can frustrate some users and may discourage them from coming back to your site, as there are legitimate reasons to right-click such as going back and fourth between pages and adding a page to your bookmarks.
- Photo Credit Jupiterimages/Comstock/Getty Images
How to Secure Files With Mac OS X Disk Utility
We all probably have sensitive information stored on our computers, readily available for anyone to see. To get a handle on information...
How to Create a Secure Website
When you're creating a website that will require customers to enter personal information, such as credit card numbers, addresses and full names,...
How to Protect Images on Web Pages
According to the U.S. Government Copyright Office, \"any original work of authorship fixed in a tangible medium (including a computer file) is...
How to Create a Secure Blog on a Website
A blog is an online web log that allows you to post entries that will be displayed in reverse chronological order. A...
How to Use SSL With Joomla
If you have a Joomla website where private or otherwise sensitive data is stored or transferred, purchase a Secure Socket Layer (SSL)...
How to Create a Secure Internet Connection
Creating a secure network connection is essential to your privacy and security, get a lesson in wireless networks and routers in this...