Spider-Man does his best to keep his identity a secret not only for his own safety but for that of his loved ones as well, but in Sam Raimi’s Spider-Man trilogy, his identity wasn’t a well-kept secret, and various characters knew that Peter Parker was Spider-Man. After a very long wait and many obstacles during pre-production, Spider-Man finally made his big screen debut in 2002 in Sam Raimi’s Spider-Man, which introduced Tobey Maguire as Peter Parker and explored the web-slinger’s origin story – from the moment he was bitten by a genetically engineered spider to the death of Uncle Ben and Peter’s full transformation into a superhero.
https://screenrant.com/every-character-knew-spiderman-identity-raimi-trilogy/