I need a tag, script or any code that can prevent my site from being hacked
You can try out DMCA. But lemme ask, are you using a paid or free hosting? Or a wapbuilder? It also depends on these factors because free hosted sites are vulnerable to attacks and might eventually get hacked.