I was wondering if a website gets hacked can we get it back from the database? If so please tell me the procedure. Thanks

link|improve this question

possible duplicate of Verifying that I have fully removed a WordPress hack? – Chip Bennett Dec 15 '11 at 16:38
feedback

closed as off topic by Chip Bennett, Rarst Jan 23 at 13:00

Questions on WordPress - Stack Exchange are expected to generally relate to WordPress, within the scope defined in the faq.

3 Answers

Okay. One of the simplest way you could try reviving your hacked wordpress installation (with an intact database) is to install it again with the same database information.

  1. Download the same version of wordpress which you were running. http://wordpress.org/download/release-archive/

  2. Unpack it. And edit the wp-config.php file.

  3. Use the same database details - username, password, host and database name.

  4. Next, browse through the newly created site and see if it is working.

If all this went fine, consider removing all admin users and recreating them (with better passwords) :)

link|improve this answer
Also, follow the steps mentioned by @songdogtech to ensure this installation is secure. :) – Sterex Dec 15 '11 at 5:30
By doing that wont my media files be deleted? – www.AppTec.net Dec 31 '11 at 10:01
Yes Akito. If you happen to replace the wp-content folder, it will get erased. If you keep it intact, wordpress would address them the same way as before. – Sterex Jan 1 at 13:37
feedback

Here is nice guide to fix a hacked WordPress blog: http://www.jtpratt.com/how-to-fix-a-hacked-wordpress-blog/

link|improve this answer
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.