Ask HN: My one-page HTML site was hacked
Hello, Need help figuring out how to get rid of a rubbish description on my website. When I use google to search for this website, under the link for the home page - there's a text that's not actually on the web page (looks like ads):
https://hostrider.com
It's a one-page site in Html, how can static Html be hacked by hackers? What can I do, as I already reuploaded everything, including the .htaccess file.
Thank you.
9 comments
[ 3.1 ms ] story [ 33.9 ms ] threadGoogle Webmaster Tools might have some help pages - do you have an account for managing your domain? IIRC, there might be a field somewhere where you can set this description. I know you can manually set this in some fashion... You have to prove you own the domain etc first. And check or get a Bing Webmaster type account as well.
Most likely stale cache from previous owner of your domain, of which there has been plenty[1] or was parked in-between.
Setup google webmaster tools for your domain.
>It's a one-page site in Html, how can static Html be hacked by hackers?
Plenty of ways, the source in your computer to the server which hosts your website. Using static website just limits the attack surface from the website itself.
[1]https://web.archive.org/web/*/https://hostrider.com/
Check which JavaScript is loaded. There can be malicious js in a static site
Verify with Google Search Console
If there was a website there before, it could just be that Google hasn't updated their search index.
Adding your site to Google Search Console can help, so you can request for the page to be reindexed.