Recently my wordpress website has got a lot of spam links. Google has indexed a lot of spam links from my website. The links are like:
http://example.com/viagra-buy.html
I found out that my .htaccess file had been modified and the and a php file with base64 code was added to my server. I want to know how I can remove the spam links from the Google. I'm afraid Google will mark my website as spam. Also how can I prevent this attack in future? Please help.