How to Get Rid of Malware on My Website

A website is commonly attacked through malware injection code. The coding is injected through HTML files or an HTACCESS file. The malware is then spread to anyone who views your website. If you notice a malware or virus warning, immediately clean out your HTACCESS file and all webpage files. Change the main website password and all administrator passwords to scripts installed on the web server.

Instructions

  1. Cleaning Out HTACCESS Malware

    • 1

      Log in to the website's root directory using an FTP program (many are free, such as SmartFTP and FileZilla).

    • 2

      Select "Desktop" on the left hand side of the FTP program. Drag the entire "public_html" folder from right hand side to the left side of the screen. This will download all website files from the web server to your desktop.

    • 3

      Go to the desktop and double-click on the folder "public_html" to open it. Locate the file named ".htaccess."

    • 4

      Right click on HTACCESS file and select "Open With" and "Notepad."

    • 5

      Clean out any malicious code found in the HTACCESS file, including redirects and embedded <iframe> code. Save changes by clicking on "File" and "Save."

    Cleaning Out HTML Pages

    • 6

      Go back to "public_html" folder and locate the file named "index.html" (or "index.php").

    • 7

      Right-click on the index file and select "Open With" and "Notepad."

    • 8

      Click on "Edit" and "Find" in "Notepad." Search for malicious code by typing in <object>, <embed> and <iframe> in the search field.

    • 9

      Clean out any malicious code. Delete malware code from an opening tag, such as "<iframe>," to a closing tag, such as "</iframe>."

    • 10

      Save the changes.

    Deleting Third-Party Codes

    • 11

      Open up individual HTML and PHP files using Notepad.

    • 12

      Look for free third-party scripts you have installed. These include free counters or guestbooks.

    • 13

      Delete third-party code and all HTML tags associated with a free script.

    • 14

      Save changes in "Notepad."

    Restore Website

    • 15

      Open up the FTP program and log in to the website's root directory.

    • 16

      Click on the left-hand side where "public_html" is listed.

    • 17

      Drag and drop "public_html" from the left- to the right-hand side of the screen.

    • 18

      Confirm that you wish to re-upload website files and publish them.

    • 19

      Select "Overwrite existing files" if prompted by the FTP program.

Tips & Warnings

  • Free third-party scripts can carry malicious malware code. These are often seen as pop-ups, advertisements and page redirects. "Third-party" refers to scripts that are not hosted on your web server but are instead accessed at a remote link and hosted by the developer of the script.

  • Uploading a blank HTACCESS file will also delete any malware coding. This option is safe if you do not have any functions or variables in HTACCESS that are necessary for website operations.

  • Do not open up website files using Internet Explorer or Firefox if you are alerted of malware on your website. Opening up HTML and PHP files in a web browser executes malware and allows it to install on your computer. Downloading and opening infected files on the desktop is safe. Malware cannot execute if opened up in Notepad.

Related Searches:

References

Comments

You May Also Like

  • How to Protect a Website From Malware

    Owning and designing websites is an exciting experience. The technology allows web designers to create interesting and dynamic websites. However, every website...

  • How to Scan Website Files for Malware

    Malicious attackers, viruses and spyware may be crawling all over your website without you knowing it. Because of this, Google has the...

  • How to Get Rid of Malware

    Protecting your computer is not an option. Malware arrives from various websites, software programs, downloads and emails. Pop-ups, a hijacked web browser,...

  • How to Change the Htaccess Password

    Htaccess, in combination with htpasswd, protects folders in your website from unauthorized entry. When implemented, a pop-up will appear when you navigate...

  • How to Find Malware on My Computer

    Malware is a catch-all term for any type of malicious computer program, including viruses, worms, Trojans, spyware and adware. Connecting to the...

  • How to Get Rid of a Malware Virus

    Malware viruses are basically malicious software programs that infect your computer and can cause a wide variety of damage to your hard...

  • How to Get Rid of Fleas

    Fleas can transmit disease and cause tapeworm, so getting rid of fleas on your pet is a must for a healthy animal...

  • How to Stop a Malware Website Redirect

    Redirect viruses, also known as browser hijackers, take control of your browser. They generally change your Internet homepage and redirect your Internet...

  • How to Fix Malware on My PC

    Failure to remove malware on your computer leaves you vulnerable to identity theft and makes your computer run significantly slower. Malware encompasses...

  • How to Remove Malware From Your Computer

    Malicious software or malware can infect a computer with different viruses and worms designed to critically damage a computer system. This software...

Related Ads

Featured