WordPress Hacked htaccess Files Fixed

1594411528_1512b1aad5_z

Just a quick update regarding the website being hacked again, SEO Spam was the culprit this time ‘MW:SPAM:SEO’(webpage post links redirected to a Viagra site.
Apparently WordPress is vulnerable to backdoor attacks ‘brute force attacks’ (admin login page being one in particular because WordPress is an outdated CMS according to our hosting provider.
You can use the free site check tool on the link below to see if your site has been hacked (6 pages of ours were affected).
https://sitecheck.sucuri.net/
This time the .htaccess files had been modified with a link to another site, ‘from what I understand it changes the permalinks’, this time instead of taking the site down and uploading an earlier backup copy, which I did after the previous attack, I accessed the .htaccess in the public html folder, through file manager in cPanel, tick the box to show hidden files (dotfiles), then (right click and code edit), this opens up in notepad, I ended up deleting the contents and putting in a clean version of code that fixed the site (see code below)
P.S. there were also a number of plug-in .htaccess files that were also hacked.
Grandad Al

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

Giveaways!

B.J. Novak New Childrens book The Book With No Pictures

Sneaker Chains UK Selection Giveaway

CBeebies Peter Rabbit three book giveaway

David Walliams new childrens book The First Hippo on the Moon

One Direction, 1D CD giveaway  & 1D DVD giveaway

Other pages you might have missed:

 

2 Thoughts to “WordPress Hacked htaccess Files Fixed”

  1. Tracy Nixon

    Lovely to see you are back! Your husband is a star for defeating the hacker – I hope you baked him a cake lol!

    1. admin

      So much for his day off & the jobs I had for him to do! But he is a star for doing this, he really had to jump in the deep end & learn quickly all the computer jargon he was coming out with was like double dutch to me . I’ll definitely buy him a box of Maltezers as he loves them & lots of huggles from the grand children.

Make sure you leave us a comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.