Remove Malware

Remove virus from WordPress Site 2021

Nowadays, there is a New Virus from the domain, & are infecting many WordPress sites. In this article we are going to remove Remove virus from wordpress site.


This type of malware inserts redirecting javascript to every post & Page. So When visitors visit your home page or any post, it will redirect to malicious sites via javascript.

List of common malware that affects the WordPress website are:


It happen due to some recent vulnerability found in Wordfence plugins. Millions of WordPress sites has been affected by the bug in the Wordfence Plugin. Follow these steps below to Fix this WordPress redirects hack.

Step to from WordPress Site:

(1) Open cpanel and Goto public_html folder of your site. If you find a file name called: _a, _f, _s, it’s a malware injection code. You need to remove these files.

Remove virus from WordPress Site

(2) Check the Plugin and themes folder and if you find any unknown PHP or javascript file, then delete that file. virus

Also Read: libc6-dev : Breaks : libgcc-9-dev (< but 9.2.1-19 is to be installed

(3) Open an “index.php” file (Ex: /wp-content/plugins/index.php or public_html/index.php). You will find a code like: <script src=’*****’ type=’text/javascript’></script>


<script src='https://scripts.lowerbeforwarden.m/src.js?n=n' type='text/javascript'></script>
<script src='https://js.donatelloflowfirstly.g/statistics.js?n=n' type='text/javascript'></script>

Delete this code if you find it. You might also find this code in every post and every index.php file. malware

Also Read: How to Send Blank Message in WhatsApp Without App

Open PHPMyAdmin and choose your Database and Search for wp_post table. Edit any post and see whether these scripts are present or not. malware

(4) To delete the code from every post, you need to open PHPMyAdmin and select your database name (in my case, DB name is crazytech_wp). Run the SQL query to remove the scripts. In my case, I found two scripts:

<script src='' type='text/javascript'></script> 
<script src='' type='text/javascript'></script>.
  • To remove
UPDATE wp_posts SET post_content = (REPLACE (post_content, "<script src='https://scripts.' type='text/javascript'></script>", ""));
  • To remove script.
UPDATE wp_posts SET post_content = (REPLACE (post_content, "<script src='' type='text/javascript'></script>", ""));


Also Read: How to Use Wifi and Hotspot together in Android

If you find some new script in your post then put same query just replace the script part.

UPDATE wp_posts SET post_content = (REPLACE (post_content, "Add_the_script", ""));

This method will also work for similar viruses. It would help if you changed the domain name accordingly.


(5) Lat step Check your siteurl and home URL in the wp_options table in the Database and make sure it is pointing to your domain.

Example of this –  You can see the below script in siteurl or home URL. If you find this url then remove and add your url. malware

Now we have successfully Remove and viruses from WordPress Site. If you still have any issue then comment below.

Also Read: How to Use Internet in Flight Mode 2020


Leave a Reply

Your email address will not be published.