How to make files not downloadable on website






















If someone can view an image or video in their browser then they have, by definition, downloaded it. That's how the web works - it is client server based. Whatever you can view in your browser client has been transfered to your computer from the remote website server. You didn't really say, but I'm guessing you are having problems with people deep linking into your content.

If that's the case, and you are open to server side code, I believe this might work:. But it's a general outline of a workable process which might help you prevent users from deep linking.

You can overlay images with a transparent div , which will prevent people from right clicking on them or, setting the background of a div to the image will have the same effect. If you're worried about cross-linking ie, other people linking to your images, you can check the HTTP referrer and redirect requests which come from a domain which isn't yours to "something else".

It also doesn't hurt to watermark your images with Photoshop or even in Lightroom 3 now. Make sure the watermark is clear and in a conspicuous place on your image. That way if it's downloaded, at least you get the advertising!

No it's not. You may block right-clicks and simillar stuff but if someone wants to download it, he will do so, trust me ;. As soon as they view your page that includes the picture or video, the item is downloaded into the temporary folder of their browser.

So if you don't want it downloaded, don't post it. You can mark folders or files so that they don't have read access any of the main web servers support this. This allows you to store them on the server without any level of access to the outside world. You may want to do this if you have a service that generates images for someone else to download later, or if you use your web account for FTP access, but don't want anyone to view the files. However, as others have said, getting into copyright areas where people can view the image or video but not save them locally is not fully possibly, although there are tools to discourage illegal usage.

Plus, it will provide a better streaming experience for your users without the need for a separate streaming server. Granted that any image the user can see will be able to be saved on the computer and there is nothing you can do about it. Now if you want to block access to other images that the user is not supposed to see, I am actually doing it that way:.

Div overlaping or background pic setting but users with little sense can easily save all resources by opening inspect element or other developer option. This will remove any click functionality from a page, but it sure stops people stealing any content! If you want only authorised users to get the content, both the client and the server need to use encryption. For video and audio, a good solution is Azure Media Services, which has content protection and encryption.

You embed the Azure media player in your browser and it streams the video from Azure. For documents and email, you can look at Azure Rights Management, which uses a special client. It doesn't currently work in ordinary web browsers, unfortunately, except for one-off, single-use codes. I'm not sure exactly how secure all this is, however. As others have pointed out, from a security point of view, once those downloaded bytes are in the "attacker's" RAM, they're as good as gone.

I think the best way is to prevent right clicking on your webpage, because that is the most convenient way a normal user try to download the content, and you can consider it as remark if u able to do this only as you are never gonna be able to stop a computer geek or hacker people from downloading it, because once the content is on the internet, it means it is in the public domain already Put the content on google drive and make it download protect.

This way people can only see your documents, pictures but cannot download it. I believe THEOplayer already provides this sort of solution as a paid service, but I'm not so sure about it. There are video hosting services such as vzaar that have this functionality. As far as I know, that will make it really hard to download directly. Stack Overflow for Teams — Collaborate and share knowledge with a private group.

Create a free Team What is Teams? Jensen Jensen 1, 4 4 gold badges 24 24 silver badges 42 42 bronze badges. Even if the image as not downloadable, what would stop the user from just making a screenshot while viewing the page and then cutting the image out of that screenshot?

Add a comment. Active Oldest Votes. Aleks G Aleks G Broken link: the website linked to no longer exists. William Gardner William Gardner 11 1 1 bronze badge.

William Seaton William Seaton 33 5 5 bronze badges. Luqman Luqman 91 8 8 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Save the changes to your HTML file. Once you're satisfied with your code, save the changes to your HTML file and reupload it if necessary. You'll be able to see your new download button live on your website.

Method 2. Open your site in the WordPress site editor. If you use WordPress to manage and publish your website, you can use the built-in tools to add a download link to any of your pages. Log into your WordPress dashboard using the admin account. Place your cursor where you want the link to appear. You can put the link in the middle of an existing paragraph or create a new line for it.

Click the "Add Media" button. You'll find this above the posting tools at the top of the page. Click the "Upload Files" tab and then drag the file into the window. You can upload a variety of different files, but WordPress may limit the size based on your account type. It may take a little while to upload files, as most connections are slower uploading than downloading. Add a description for the file. You can enter a description underneath the file in the Add Media window.

This will be the text that displays as the download link. This will insert the download link at the location of your cursor. Note that this will link to an attachment page and not the actual file. This is a limitation of the WordPress software. Method 3. Open your website in the Weebly editor. Log into the Weebly site and open your web page in the Weebly editor.

Select the text or object that you want to turn into a link. You can highlight text in a text field or select an image on your page that you want to turn into the download link for your file.

Click the "Link" button. When you have text selected, this looks like a chainlink, and can be found at the top of the text editor. When you have an image selected, click "Link" in the image control panel. Select "File" and then click "upload a file. Select the file you want to make available for download.

Once you select the file, it will begin uploading. Basic users are limited to files 5 MB and smaller. Premium users have a MB file size limit. Publish your site to see the new link. After uploading the file, the link will be ready to use. Click the Publish button to push your changes to the live site.

Your visitors will now be able to click the link and download the file. Method 4. Open your website in the Wix editor. If you use Wix to create and manage your site, log into the Wix website and load your webpage in the site editor.

Select the text or image that you want to turn into a link. If for whatever reason, you cannot add the download attribute in the case that you cannot directly edit the HTML of your web page , you can optionally compress the file using zip, and instruct the user to download the zip file.

You can alternatively explain to the user that they should right click on the link and select download. If you have no other alternatives to force the file to download, you can host it on a file hosting service such as Google Docs. The most common file types that are affected by this behavior are PDF files and images. The code below will tell the browser to prompt the user to save the file.



0コメント

  • 1000 / 1000