I think hackers (or script kiddies) attacked my website using leaks of website's codebase. Posts in the database changed so that they contain this html:
<meta http-equiv="refresh" content="0;url=http://example.com"/>
But i can't rewrite the system now. What are the strategies to prevent this situation happening in the future?
I'm thinking of migrating admin script to a subdomain that allows access to certain domains. Or using mod_security SecFilterScanPOST and scanning all post request containing http-equiv etc. Or only allowing post requests from my server or all of them?
Thank you.