Web Design Forum  
 
Go Back   Web Design Forum > Web and Graphic Design > Web Design

Reply
 
LinkBack Thread Tools Display Modes
Old 12-04-2009, 09:24 PM   #1
New Member
 
Join Date: Dec 2009
Location: Sarasota, FL
Posts: 3
Default Disallowing images to be downloaded from a website?

What type of code is required to ensure that any image or pdf file cannot be downloaded or saved from a website? Also, would different versions of the code be required across the different web browsers? Thank you.
SolCreate is offline   Reply With Quote


Old 12-06-2009, 02:21 AM   #2
New Member
 
Join Date: Dec 2009
Posts: 16
Default

Do you mean displaying these files on a html page, but not allowing people to save them?

If so, then I don't know of any techniques to keep pdfs from being downloaded. For images, the only way to do this through CSS by declaring a background image for an html tag. Use the css style attribute and background property. Here's an example with a div tag, assuming an image's dimensions are 100x100:

Code:
<div style="background:url(pathtoyourimage);width:100px;height:100px;"></div>
Where pathtoyourimage is the path and file name of the image.

You can use this technique for most html tags, including anchors and headings.

But if people really want the image, there is no way to stop them from taking a screen shot.
scottg is offline   Reply With Quote
Old 12-07-2009, 01:02 PM   #3
Silver Member
 
Join Date: Aug 2008
Location: Atlanta, Georgia
Posts: 140
Send a message via MSN to constanthosting
Default

There are many ways to circumvent things such as disabling right click on a website to prevent people from right clicking on the image and saving it. One way in firefox is click on tools in firefox then click on 'page info' and then from there it will show and allow you to save images and other media. There really is no way to prevent people from getting the images. Such as the previous poster here said, they can always take a screen shot..
__________________
http://constant-hosting.com Webhosting Improved. You'll love our shared hosting.
constanthosting is offline   Reply With Quote
Old 12-07-2009, 01:57 PM   #4
New Member
 
Join Date: Dec 2009
Location: Sarasota, FL
Posts: 3
Default

Thank you scottg and constanthosting. I had come to that conclusion regarding the screen shot. Most of my site material (images and pdf) has to do with intellectual property that other firms shouldn't use anyway. However, we know that can't really be "followed" so closely. The CSS should work for our images though. The pdf files is another matter.
SolCreate is offline   Reply With Quote
Old 12-07-2009, 02:08 PM   #5
New Member
 
Join Date: Dec 2009
Location: Sarasota, FL
Posts: 3
Default

Quote:
Originally Posted by scottg View Post
Do you mean displaying these files on a html page, but not allowing people to save them?

If so, then I don't know of any techniques to keep pdfs from being downloaded. For images, the only way to do this through CSS by declaring a background image for an html tag. Use the css style attribute and background property. Here's an example with a div tag, assuming an image's dimensions are 100x100:

Code:
<div style="background:url(pathtoyourimage);width:100px;height:100px;"></div>
Where pathtoyourimage is the path and file name of the image.

You can use this technique for most html tags, including anchors and headings.

But if people really want the image, there is no way to stop them from taking a screen shot.
Great portfolio, scottG. Thanks again for the feedback and assistance.
SolCreate is offline   Reply With Quote


Reply

Tags
downloads, images, pdf files, save as feature

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



All times are GMT. The time now is 01:57 PM.


Camera Forum - Computer Forum - Web Design Forum

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.