It is risky to directly localize and save the remote original image. Although it is a normal image
But it also has a special purpose function. For example, this one has the php upload function. I personally test that my server does not allow uploading files with image URLs. I don't know how the black hands use it.
Here I suggest that you need to save remote images locally, and then use compression or watermark to process images again, so that you can automatically filter things that do not belong to images.
LY picture scaling, compression and clipping+picture watermark, text watermark
https://www.58xp.com/post/23/