How to Check & Protect your Website from Malicious Redirects?

If hackers gain access to your website, they may embed harmful code that directs users to phishing or malware websites. Alternatively, they could entice users to these harmful redirects through spam emails. Such messages can be as straightforward as:

Subject: Hello!

Body: News: http://[your domain name]/jyl/wnews.php

If you encounter alerts regarding your website, it’s important to check your site content for any files that may have harmful redirects. Usually, these files are located in distinct folders, such as the ones mentioned:

  • /uuc/news_id.php
  • /zkd/news_fx.php
  • /dgmq/w_news.php
  • /cisc/br-news.php

These documents will include a compilation of domains along with a snippet of code that executes the redirect— they resemble the following:

<meta http-equiv="refresh" content="2; url= ">

The code http-equiv prompts the user’s browser to access the harmful website.

It’s clear that you should eliminate any files with redirects immediately.

Protecting Your Site

There are several methods by which attackers can insert harmful code into your website. If you’ve encountered this situation, we suggest implementing the following measures to protect your site:

  • Examine your hosting account to confirm it doesn’t contain any additional harmful content. For more details, refer to the prior post My Website is Hacked. What Should I Do?
  • Ensure that all applications your website relies on are updated to the most recent versions (such as WordPress, Joomla, etc.).
  • Make sure all themes, plugins, and extensions are also updated to their latest versions.
  • Reset your FTP and database passwords, as well as the passwords for your web applications like WordPress or Drupal.
  • Ensure your anti-virus software is updated and perform a scan on your local workstation to detect any signs of compromise.
  • Consider utilizing website security software, such as Website Security, to analyze your site for vulnerabilities and breaches. Follow the provided link for additional information.

You can discover additional details regarding application security breaches in My website was hacked. What should I do?.

Thanks for visiting. For queries and suggestions, emails are welcome at learnweb@hostingcolumn.com.

Subscribe to Hosting Column for the latest updates and posts.