Skip to main content
31 votes

How to prevent pictures from being downloaded by right-clicking on them or Inspecting the web page?

You can't prevent it, you can only stop people who don't understand coding. Generally it is done with Javascript which is easy to disable. Further, it is a trivial matter to take a screenshot of an ...
Steve's user avatar
  • 8,513
25 votes

How to prevent pictures from being downloaded by right-clicking on them or Inspecting the web page?

By definition, if a visitor can view an image, it has already been downloaded. That's how a web page works. You can however use a variety of tactics to make it more difficult to do so. As you've ...
Daze's user avatar
  • 436
10 votes

How to prevent pictures from being downloaded by right-clicking on them or Inspecting the web page?

One more trick to make it a little harder, which also works with Javascript disabled. Use CSS to position a transparent element over the image, so that right clicking it does not show the image-...
Mark's user avatar
  • 101
4 votes

What is the benefit of the "download will begin shortly" page?

When you serve a file that is downloaded, browsers keep showing the page that was shown previously. Having a "Your download will begin shortly" page ensure that everyone see a convenient page.
Bruno's user avatar
  • 161
4 votes

How to prevent pictures from being downloaded by right-clicking on them or Inspecting the web page?

For mitigating direct URL access you would have to implement a token system which allows images to be downloaded only when the page is visited. When the web page loads, generate a token and save it to ...
MonkeyZeus's user avatar
3 votes
Accepted

PDF download fails because of...what?

To get the .pdf extension on the file after download, it needs an HTTP header like: Content-Disposition: attachment; filename=some-file.pdf; With this header it will be saved as some-file.pdf even ...
Stephen Ostermiller's user avatar
3 votes
Accepted

Embed vs downloaded gif

It is almost always better to download it to your site. If you have a link to the image and the originating site deletes the file, you will end up with something other than you expect in that spot on ...
Steve's user avatar
  • 8,513
3 votes
Accepted

Clicking on the downloaded jQuery file gives errors from the source "Microsoft JScript compilation error"

JQuery isn't something you "open" it is a JavaScript library you include and reference in your website's code via <script></script> tags. An example taken from the jQuery site itself is: ...
Jeff Wilbert's user avatar
3 votes

When is "async" useful for loading scripts into a web page?

The async attribute is useful for a script that: Doesn't depend on whether the HTML is fully loaded Shouldn't block the HTML Yet should still be executed ASAP A perfect example of this is an ...
Maximillian Laumeister's user avatar
2 votes
Accepted

Does HTTP not support providing a checksum in a form of header for downloaded content?

Digest is the standard header used to convey the checksum of a selected representation of a resource (that is, the payload body). An example response with digest. >200 OK >... >Digest: sha-...
Stephen Ostermiller's user avatar
2 votes
Accepted

Does CloudFlare's analytics support download statistics on individual files?

No it does not - at least, not on the Pro plan that I use. Cloudflare Analytics is actually fairly limited in what you can see, and there is no download of stats. In my dashboard I have the following....
DisgruntledGoat's user avatar
2 votes

Is there a successor to PDF that is page-agnostic?

When I think "PDF but page agnostic", my mind immediately goes to e-book file formats, for example EPUB. EPUB is an open file format that supports rich formatting and has wide compatibility ...
Maximillian Laumeister's user avatar
2 votes

How to prevent pictures from being downloaded by right-clicking on them or Inspecting the web page?

To simply disable the Context (right-click menu) at the web page level: HTML body tag: <body oncontextmenu="return false"> Javascript on page: document.oncontextmenu = function() { ...
user8356's user avatar
  • 121
1 vote
Accepted

Why website copy tools like Cyotek WebCopy and HTTrack cannot find files that search engines like Google can?

Given a specific URL the web-copy-tools like HTTrack will only crawl the HTML response and only resources that are ultimately crawlable from that initial HTML response are accessible (not just ...
MrWhite's user avatar
  • 42.9k
1 vote

How to prevent pictures from being downloaded by right-clicking on them or Inspecting the web page?

Using the CSS rule pointer-events: none; on image elements prevents them from responding to click events: right clicking the image will still show a page context menu, but without "save image&...
traktor's user avatar
  • 111
1 vote

How to prevent pictures from being downloaded by right-clicking on them or Inspecting the web page?

Embed the images in a multimedia object. Back before Flash got rendered obsolete and had its support removed, one popular method for doing this was embedding the images you want to display (but ...
nick012000's user avatar
1 vote

How to prevent pictures from being downloaded by right-clicking on them or Inspecting the web page?

The way you're probably looking for is a javascript script overriding the call for a context-menu on <img> tag that does not call the menu and does not do anything. The exact script depends on ...
mishan's user avatar
  • 119
1 vote
Accepted

"Uncommon download" warnings in Chrome

I was encouraged in the comments to provide this as an answer: "Does Google publish anything to explain their criteria for reaching an UNCOMMON verdict?" Not that I was able to find. Their ...
slim's user avatar
  • 161
1 vote

PDF download fails because of...what?

PDF download fails ... By the sound of it, the PDF download isn't "failing", it's just not being saved with a .pdf file extension. This is probably only a "problem" on Windows, that requires the file ...
MrWhite's user avatar
  • 42.9k
1 vote

Website downloading resources Multiple times, unecessarily

Any chance you have a "?" question mark or query string as part of the path to your CSS file? Apparently, some proxies don't cache files with query string parameters (see comments at end of article). ...
Trebor's user avatar
  • 3,270
1 vote

Website downloading resources Multiple times, unecessarily

You need to set your cache policy properly, it sounds like it’s not set at all. So every time someone goes to a page they have to re-download all the same files. Setting the cache for css and js to 30 ...
Alec Sharratt's user avatar
1 vote

Download a File from a URL

Is this a restriction from the web site? Yes. and is there a way to download the file using its URL? Maybe, but we have no idea what that way is. Maybe you need to log in and get a cookie. Maybe ...
Quentin's user avatar
  • 1,608
1 vote

How to let search engines index form-locked PDFs

One way this could be done is through PHP user agent: if(strstr(strtolower($_SERVER['HTTP_USER_AGENT']), "googlebot")) { // what to do } If the user is Googlebot, display/redirect to the PDF ...
Michael d's user avatar
  • 4,803
1 vote

Form-locked PDFs in JSON-LD

Google’s documentation for subscription and paywalled content doesn’t mention that files are supported. If files are supported, I would expect the following to work (based on the documentation for ...
unor's user avatar
  • 21.8k
1 vote

Firefox doesn't update cache of a downloadable zip file. Why?

I would just add the version to the filename and you will circumvent the caching. or maybe change the caching headers: (Apache .htaccess file) <IfModule mod_expires.c> ExpiresActive On ...
Keith Tysinger's user avatar
1 vote
Accepted

Saving all images from a website in nested folders

I have great success downloading entire sites with https://www.httrack.com/ (I have no association with it). It may be possible to select only images. But even if not, once you have the whole site, ...
Steve's user avatar
  • 8,513
1 vote
Accepted

How to track digital product sales from third-party vendors

In order to allow a distributor to sell your digital products on their website while trusting their sales reports, you're going to have to log the sales or usage in one way or another. If your ...
Michael d's user avatar
  • 4,803
1 vote
Accepted

Should the availability of digital purchases be marked as OnlineOnly?

I think it’s not relevant if it’s a physical item or a digital item. An example that makes clear that the difference shouldn’t matter when deciding if and how availability should be used: You could ...
unor's user avatar
  • 21.8k
1 vote
Accepted

Is it an overkill to specify the accept-ranges header for small HTML pages?

HTML code size is under 20 KB Since you mention HTML file, there is no need for range headers for HTML files. For following reasons often HTML files are generated by dynamic languages (PHP, JAVA,.....
Yucieyurimoyq's user avatar
1 vote

How to tell search engines to not index entire image domain without making them waste server bandwidth or making google complain

The most effective way to do this is to use a robots.txt file with Disallow: / as the only directive and place it in the web root for the images domain. When this is done search engines won't crawl ...
Chris Rutherfurd's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible