-1

My website is defaced and every time I load it, there appears a page with some message in some Turkish language and the title of page is 'hacked by 58'.

I tried searching this web page in my public_html directory but couldn't find this html in any directory. Yet still it loads when we visit the website.

Any help?

Jonathan Leffler
  • 730,956
  • 141
  • 904
  • 1,278
Azam
  • 3
  • 5
  • 1
    Restore from a backup. – ceejayoz Feb 10 '17 at 14:52
  • i dont have it. i dont have the backup – Azam Feb 10 '17 at 14:59
  • 2
    @Azam: That was a bad idea then. If you don't have a copy of your website anymore, then you don't have a copy of your website anymore. You can manually make changes to the production version, but without a "known working version" it's just a guessing game. – David Feb 10 '17 at 15:02
  • 1
    @Azam Contact your host and pray they have backups, then. – ceejayoz Feb 10 '17 at 15:07
  • IMO, you should be keeping the source for your web site under a version control system so that you can reproduce it at any time. One primary reason is so that if you are hacked, you can reinstate the original. If you need more help, you'll need to identify which system you're using — which CMS (WordPress for example) and which o/s it is hosted on (Linux? Windows?) etc. Versions are also relevant — if you're not using the latest, upgrade. However, this is something that will be hard to work on for Stack Overflow — this sort of situation does not lend itself to a good SO-compatible question. – Jonathan Leffler Feb 12 '17 at 03:23
  • Possible duplicate of [Best methods to clean up a hacked site with no clean version available?](https://stackoverflow.com/questions/6337976/best-methods-to-clean-up-a-hacked-site-with-no-clean-version-available) – tripleee Sep 04 '18 at 03:25

1 Answers1

0

nginx or apache? locate the configure file,inside the file there is a line kind of 'root',that's path of your index folder,enter that folder fix index.html. Btw,if your server is hacked,it's highly possible running dangerous programs ,you'd better reinstall your sys,and try not to be hacked,such as use ssh-key login method.

chen junjie
  • 15
  • 1
  • 9