Answer the question
In order to leave comments, you need to log in
How is an image encrypted on a website?
Hello. I tried to download the product image from the site: https://www.asavacu.com/builder-merchant-osb3-boar... and when I try to open it, an incomprehensible rubbish appears. It became interesting how to make the same "protection". At the same time, the image is displayed on the site itself, it cannot be downloaded, symbols are displayed via a direct link. I found a photo through Yahoo, in the search itself the image was displayed normally, that is, it was indexed by search engines correctly.
Answer the question
In order to leave comments, you need to log in
On the server, a PHP file has a rule that when a user directly accesses an image, it is loaded not as an image, but as an HTML file . Well, something like this. And the symbols you see are the picture itself. If you save this text to a JPG file, you will see a normal picture
It is not encrypted in any way :)
download and save to a file...
For example:
wget -O file.jpg https://www.asavacu.com/image/images_1/images/I/71...
or
curl -o file. jpg https://www.asavacu.com/image/images_1/images/I/71...
It is not encrypted, the server just sends it with the wrong header.
And most likely this was not done on purpose, but a cant of the server configuration, or an error in the script.
If you need one-time, then click on the link, save as, and add .jpg
.
If you need to download them in bulk, then you can use wget, curl, or any other tool convenient for you, there are dozens of them.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question