r/PHPhelp • u/Independent-Buddy988 • Nov 27 '25
Malicious Php files - HELP!
My website was hacked unfortunately, and with the uploads folder (wordpress) i found malicious php files which weren’t supposed to be there. I was wondering if simply renaming the files from php to something else will render them useless or do i need to delete them for everything to be fixed. I’m just wary of accidentally deleting smth important…
0
Upvotes
View all comments
Show parent comment
3
u/[deleted] Nov 28 '25
Yeah, I go one step further: Webserver has no rights to write the directory (so no automatic updates via web frontend, no installation of plugins and so on) except uploads.
So there's a differentiation:
data <--> program files