An electronic apparatus configured to prevent and/or restrict photographing of a content , the electronic apparatus comprising: a camera ; a display configured to display the content ; and a processor configured to: identify whether a content protection function is set in the content based on a metadata of the content , in response to identifying the content protection function is set in the content , turn on the camera , obtain an image through the turned-on camera , and in response to a predetermined object being detected in the image, the processor determines that there is an attempt to photograph the content displayed on the display and turns off the display and/or controls the display to display a UI restricting photographing of the content , wherein the metadata includes information that the content protection function has been set in the content , characterized in that the processor is further configured to determine whether the camera is covered by another object, wherein, if the processor determines that the camera is covered by the other object, the processor determines that there is an attempt to photograph the content displayed on the display and turns off the display and/or controls the display to display a UI restricting photographing of the content . a camera ; a display configured to display the content ; and a processor configured to: identify whether a content protection function is set in the content based on a metadata of the content , in response to identifying the content protection function is set in the content , turn on the camera , obtain an image through the turned-on camera , and in response to a predetermined object being detected in the image, the processor determines that there is an attempt to photograph the content displayed on the display and turns off the display and/or controls the display to display a UI restricting photographing of the content , wherein the metadata includes information that the content protection function has been set in the content , characterized in that the processor is further configured to determine whether the camera is covered by another object, wherein, if the processor determines that the camera is covered by the other object, the processor determines that there is an attempt to photograph the content displayed on the display and turns off the display and/or controls the display to display a UI restricting photographing of the content . identify whether a content protection function is set in the content based on a metadata of the content , in response to identifying the content protection function is set in the content , turn on the camera , obtain an image through the turned-on camera , and in response to a predetermined object being detected in the image, the processor determines that there is an attempt to photograph the content displayed on the display and turns off the display and/or controls the display to display a UI restricting photographing of the content , wherein the metadata includes information that the content protection function has been set in the content , characterized in that the processor is further configured to determine whether the camera is covered by another object, wherein, if the processor determines that the camera is covered by the other object, the processor determines that there is an attempt to photograph the content displayed on the display and turns off the display and/or controls the display to display a UI restricting photographing of the content . <EOS>