ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel
  • »
  • Technology»
  • Internet & the Web

How to Remove and Protect your Website from Malicious Code

Updated on April 27, 2011

Hello Reader, in my previous hub I explain what is malicious code and how its come to our website and fix it in out webpage content. Here now I am show you how to remove and protect your site from malicious code.

First of all when you know that your site is affected by the virus and message is display “ “ when you open your webpage. You have to  verify your website with verification method by Google webmaster ( ).

If you already verify than no issue but if you not than verify it and by clicking on your site link in webmaster account you can see your safe browsing diagnostic page from Google advisory.

Safe Browsing Diagnostic page look like this

Safe Browsing Diagnostic explain all details regarding virus attack to your site, it gives report in details like how many suspicious activity listed in past few days, how many Malicious software includes, Malicious software is hosted on which domain(s), This site was hosted on which network(s) all this details you can get.

In your Google webmaster account go to the dashboard and click on your site than you can see the in your website pages where threat are detected it shows the full path. So you can easily find it out and remove it.

Detail report look like this.

How to remove malicious code from your website content

First of all download all your website backup in your hard disk from server using the ftp software like ( cute ftp, ws ftp, fire ftp etc. ) and delete all files and folder from server in root diretory.

There are lots of antivirus ( internet security software ) available in the market like Kaspersky, Symantec, Quick heal, panda etc. you can use this software and scan you website back to remove malicious code. But make sure that this software delete affected pages from your hard disk, so it may bother you when your home page or other important page deleted. So before doing this try to find out malicious code manually in your webpage and remove it.

You can easily find out unwanted code in your webpage, I already show you that how malicious code look like.

After cleaning all your website pages ( by antivirus software or manually ) upload all new clean  data on your server.

How to protect it

Protect your website from hacker follow below steps.

Change your ftp username and password ( it may solid not easy )
Never save your ftp password in ftp software.

Type your password in ftp when you use it and remove it when you stop using it.

 Pleases give me feedback if you think this information is helpful for you.


    0 of 8192 characters used
    Post Comment

    • profile image

      stevebrown 4 years ago

      Excellent Information

    • profile image

      Creazione Siti Livorno 6 years ago

      Thanks a lot for your information.

    • profile image

      Md.Masudul Haque 6 years ago

      How we prevent from the code which are activated without click

    • profile image

      Harsh 8 years ago

      very useful post.

      thank u for posting such a post.

      keep it up.