• My self hosted wordpress website must have been hacked. Someone inserted a link to a drug selling site into each one of my posts. Each link has the same URL but different link text. Is there a way to set up a Regular Expressions to find all of these links.

    Example links:

    different text
    different text in each link

    Thanks for any help on this.

    By the way, I went and changed my wordpress sign in password. Do you think that is how they got into my site, by guessing my password?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Lee

    (@diondeville)

    If there are not too many text strings accompanying the URLs you will be able to copy each link’s details by viewing its source, copying it then pasting it into Search RegEx (select the link text, right-click it, select “view selection source”. Copy from < a href=……to < / a>. If there are < p>< /p> tags then you’ll need to include them too).

    There are many different ways to hack into WordPress sites.

    wp-config.php contains your database username and password so remember to change the file access permissions of wp-config.php to 400 (and remember to change them back to their current settings before upgrading or re-installing WordPress Core Files, or if you want to make any edits to it.). Also, use the BulletProof Security plugin to protect your site. A few other security suggestions can be found at JournalXtra. When wp-config is set to 400, no one can edit or view it.

    When using BulletProof Security, ensure you edit the secure .htaccess file to reflect any changes you’ve personally made to your current .htaccess file before you use the secure file to replace your current file.

    Just one small point: a chmod of 400 on wp-config.php won’t work on every server. Been There. Tried It. Brought The Site Down.

    Lee

    (@diondeville)

    Thanks for pointing that out, Esmi.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Search Regex] Using regular expressions to find spam links’ is closed to new replies.