You can check image data such as image height, width, perhaps even the size and color of the image depending on what is displayed on the canvas. For example, suppose the canvas is 250 x 250 pixels, and it only displays 2D squares using blue, red, and green. If there are more than three colors, if the colors are not only blue, red and green, or if the canvas is not 250 x 250, you deny it. You can also check the "referrer" value in the user agent, however it can be easily changed.
source
share