I have created the site and it got hacked by spammer. now there many unnatural links in it if I disavow it the whole domain will it solve my problem what.

Also I have two version of domain https://example.com and other is https://www.example.com.

The domain with www. is spammy. If I disavow full domain than will it harm my domain non-www version. I am confused. need help.

My previous site was running on www.example.com after it got hacked I removed entire site and created another with non-www version of domain.

  • Please help us to understand your problem: your site www.example.com got hacked by a spammer in oder to post links to other pages on it?
    – Seb
    Commented Oct 13, 2015 at 12:27
  • 1
    My site got hacked and there are many unnatural and unwanted link in google search for example www.example.com/casino www.example.com/nudephotos. and many more.I want to remove that links. actually i removed entire site and created new site with same domain without www.
    – Ali
    Commented Oct 13, 2015 at 12:36
  • @simon can you help in this.
    – Ali
    Commented Oct 13, 2015 at 12:44

1 Answer 1


The problem you are talking about is not unnatural links but being hacked and having wrong pages indexed.

Your domain www.example.comhas severeal URLs indexed such as www.example.com/spam.

What you need to do first is make sure all your adminitrative logins are secured and your CMS is up to date. Make sure noone else has access to your site's configuration.

Next, delete all the unwanted pages.

Third: go to your Google Search Console account and use the "Remove URLs" feature: https://support.google.com/sites/answer/100283?hl=en

Disavowing links is NOT intendet to be used for a case ike yours.

See more on this topic on: Google Webmasters Help Pages

Edit Note that you may need an additional Search Concole Property for your www and non-www-Version of your page. Simply erasing it and using the non-www-Versiona s your default does not solve the real problem.

Edit 2 After cleaning up and setting up the original website you may consider submitting a sitemap.xml to Google to make it recognise all the changes. Find more on this topic at Google's webmasters Help: https://support.google.com/sites/answer/100283?hl=en

Edit 3 As you just stated Google informed you in their webmaster tools about your site being hacked. Follow their guide on recovering hacked websites: Webmasters Central : Easier recovery for hacked sites

  • I have deleted entire site. but still that pages appear ingoogle search what is the problem there.
    – Ali
    Commented Oct 13, 2015 at 13:03
  • Google does not check your page on an hourly base therefore it needs a bit of time to delete the old pages from Google's index. You may try configuring yor webserver to respond a http 410 status code for each of those spam-URLs. This tells the crawler that the page is gone and does not need to be crawled neither indexed anymore.
    – Seb
    Commented Oct 13, 2015 at 13:06
  • my domain example.com is not indexing. whats the problem there?
    – Ali
    Commented Oct 13, 2015 at 13:07
  • Please do not mix up questions. let's try to solve your spam question here. if you have further questions on how to get indexed and so on, please look for similiar questions open a new question.
    – Seb
    Commented Oct 13, 2015 at 13:10
  • ok please tell how to remove all the links of previous site. the site does not exist now but the search result in google still shows the link of my old site.
    – Ali
    Commented Oct 14, 2015 at 5:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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