Disable posts generated from image uploads

WordPress generates a post for each image I upload. On my site I got a picture assigned to the header: https://autowaschplatz.at/contact/. The image is separately browsable via https://autowaschplatz.at/person-using-macbook-3747202/. How can I disable/hide this feature so search engines won’t find those sites?