How to remove malware redirectors from your website | Gray Technical, LLC (2024)

Summary: Remove malware redirectors from your website

Article by: Kyle Gray

Gray Technical, LLC – CEO

The issue:

Website redirectors are often placed into websites with low defenses to divert traffic to other websites. In most cases visitors of the site with the malware will be redirected to sites not exactly ‘work appropriate’. Having one of these nasty malware redirectors buried inside your website can cause many issues. Not only loss of customers but it can also cause your website to be flagged as a ‘not safe’ site by website scanners (like Google’s search engine).

How to know you have been attacked?

Determining your website is under attack from malware isn’t always easy. More than likely, if you are here, you already know your website is under attack. If you don’t, the easiest way you can find out is by visiting your site via different web browsers. FireFox, Google Chrome, Safari, mobile devices, etc. If your website gets redirected on one of those devices/browsers, then you have a redirector malware installed on your site.

How do you fix it?

There are two options to fix this issue.

Option 1: Have someone else do it for you.

The first step should always be to contact your website hosting service. Sometimes, if you purchased a good hosting service/package deal, your hosting service may be willing to backdate your website to a time without the malware. If not, they might go further and even clear your files and scan them for malware.

If the hosting service is not so good, they will redirect you to third party cleaning service that can fix your issues for “a small, single installment fee of $600”. To add to this, your website “will be cleaned within a few minutes”.

Translation: ‘For $600 we can do 10 minutes of work and fix your website’.

I’m sorry, but I cannot justify paying $600 for a 10 minute job, especially knowing I could spend 20 minutes researching how to fix my issue and 10 more minutes to actually fix it. I could save $600 by taking 30 minutes out of my day. Sounds pretty good to me.

Option 2: Do it yourself.

So doing this yourself might sound daunting, however with this guide you should be able to have it done “within a few minutes”. Of course, every website is different and times will vary. That being said, this method should take about thirty minutes out of your day from start to finish.

First, what you will need:

  • Access to your cPanel and/or File Manager
  • Basic knowledge of how to edit files
  • Computer able to access your cPanel and/or File Manager

Before you change anything you should ALWAYS backup your data!

Before we start! Backup all of your files. These steps, if followed 100% without deviation, should not damage your site. However, that doesn’t mean that your computer won’t randomly shut down during the middle of an edit or your file will not corrupt when it saves. For safety, ALWAYS back up your website before you change anything!

And for legal purposes, Gray Technical, LLC is not responsible, nor does Gray Technical, LLC claim any responsibility to anything that happens when following these guide lines. Please complete these steps at your own risk.

First, go to your cPanel (ie: www.[-YOUR_website_DOMAIN-].com/cpanel ) and open your File Manager. Make sure that you select to show hidden files (if that is an option) as you are going to be accessing primarily hidden files.

Once inside the File Manager navigate to your main site’s domain, ‘public_html’. Inside the ‘public_html’ look for a file named ‘.htaccess’ and select ‘edit’.

Inside the ‘.htaccess’ file look for a website url that is not directly associated with your website, like in the image below.

This is your malware website redirector. To remove this, simply delete that line of code, save your file and close out of the editor.

Continue this process through every folder inside of ‘public_html’ and look for any file named ‘.htaccess’.

You do not have to repeat these steps for files/folders that are backups. Backup files typically have ‘.bac’ or ‘backup’ in the name.

And that’s it!

After all of the ‘.htaccess’ files have been modified close out of your cPanel and/or File Manager and reload your website on the browser that was getting redirected. The redirections should now be stopped and your website is clean (or at least from redirectors).

How to prevent this from happening again:

The steps to prevent this attack from happening again are pretty simple, and are listing below.

  1. Periodically change all of the passwords that have access to these files. For best security make sure the passwords are no shorter than 12 characters and have at least one upper case, lower case, number and special symbol.
  2. If you are running your website via WordPress try to install a free firewall/malware/popup/virus blocker. WordFence is a really good ‘all-in-one’ plugin for this and come pre-installed with a few WordPress bundles.
  3. Update all of your plugins, themes, widgets, banners, ads, side content URL links and personal redirectors regularly. If there is a weak point in any of these your website is at risk.

Conclusion:

If none of this helps your case please research other methods with your specific situation. There are many ways hackers can attack your site, and this cleaning solution only applies to one in particular.

Don't Forget

If you like this post and would like to subscribe to our newsletter to learn more about Gray Technical please follow this link.

As always if you would like to contact us for help or information please email us at support@graytechnical.com

How to remove malware redirectors from your website | Gray Technical, LLC (2024)

FAQs

How do I manually remove malware from my website? ›

To manually remove a malware infection from your website files:
  1. Log into your server via SFTP, SSH, or your hosting control panel like cPanel.
  2. Create a backup of the site before making changes.
  3. Identify recently changed files.
  4. Confirm the date of changes with the user who changed them.
  5. Restore suspicious files.

Does clearing website data remove malware? ›

Step 1: Clear your browser cache

Clearing it up can speed up the performance and help rule out malware as a cause of your issues. To clear your cache on an Android device, open 'Settings', search for 'Apps', find 'Chrome', locate 'Storage', and select 'Clear Cache' in the Storage menu.

How do I force remove malware? ›

How to remove malware from a PC
  1. Step 1: Disconnect from the internet. ...
  2. Step 2: Enter safe mode. ...
  3. Step 3: Check your activity monitor for malicious applications. ...
  4. Step 4: Run a malware scanner. ...
  5. Step 5: Fix your web browser. ...
  6. Step 6: Clear your cache.

How long does it take to remove malware from a website? ›

Cleanup time varies based on severity. In most cases, we're able to complete your malware removal within 24 to 48 hours.

How do I detect and delete malware? ›

Scan your device for malware.

Run a malware or security Delete anything it identifies as a problem. You may have to restart your device for the changes to take effect. Run your scan again to make sure everything is clear. If the scan shows there are no more issues, you've likely removed the malware.

How do I get rid of malware without paying? ›

Are there any free virus scans? Free virus detection software from a reputable provider like Avast is the best way to perform a free virus scan, online as well as off. We'll automatically detect, block, and remove viruses and other malware from your devices.

What should be used to remove malware? ›

Microsoft Defender Antivirus is a powerful tool that finds and removes malware from your PC. Here's how to use it in Windows 10 or 11 to scan your PC. Important: Before you use Microsoft Defender Offline, make sure to save any open files and close apps and programs.

Can you manually delete malware? ›

Malware can be removed by deleting suspicious programs, files, extensions or applications that may have infected your computer.

How do I manually scan for malware? ›

Run a malware scan manually
  1. Select Start > Settings > Update & Security > Windows Security and then Virus & threat protection. Open Windows Security settings.
  2. Under Current threats, select Quick scan (or in early versions of Windows 10, under Threat history, select Scan now).

Can you scan a website for malware? ›

The website malware scanner is a free online tool that can be used to scan any website for malicious code, hidden iframes, vulnerability exploits, infected files and other suspicious activities.

Can malware virus be removed? ›

Some computer viruses and other unwanted software reinstall themselves after the viruses and spyware are detected and removed. Fortunately, by updating the computer and by using malicious software removal tools, you can help permanently remove unwanted software.

Top Articles
Latest Posts
Article information

Author: Madonna Wisozk

Last Updated:

Views: 5852

Rating: 4.8 / 5 (48 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Madonna Wisozk

Birthday: 2001-02-23

Address: 656 Gerhold Summit, Sidneyberg, FL 78179-2512

Phone: +6742282696652

Job: Customer Banking Liaison

Hobby: Flower arranging, Yo-yoing, Tai chi, Rowing, Macrame, Urban exploration, Knife making

Introduction: My name is Madonna Wisozk, I am a attractive, healthy, thoughtful, faithful, open, vivacious, zany person who loves writing and wants to share my knowledge and understanding with you.