Support » Plugin: Search Regex » Ideal to get rid of hack

  • I was just hacked and in more then 300 posts a linked dot had been inserted like this:

    <a style="text-decoration:none" href="/buy-amoxicillin-with-mastercard">.</a>
    <a style="text-decoration:none" href="/buy-myambutol-online-fast-delivery">.</a>
    <a style="text-decoration:none" href="/cost-of-indocin-without-insurance">.</a>
    and so on…

    With this Plugin all I need to do was replacing this regex with nothing:

    '<a style="text-decoration:none" href=.*</a>'

    So I was able to get rid of all the different links at one shot!

    AWESOME and times-saving!

    THX

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,
    I’m having the same problem with 400+ posts. You mentioned this pugin, it is easy to use it?
    Thanks

    Sorry,

    At the end I used it and worked great for me (+400 posts)to eliminate this “text-decoration:none spam links hacks”
    I used a generic code that I found online to eliminate all the code:

    Search Pattern:
    [<a style="text-decoration:none" (.*?)href="(.*?)(.*?)>(.*?).</a>]

    Replace pattern:
    <a style="text-decoration:none" href=.*</a>
    Regex: ON

    I think you can change the replacing pattern to whatever you one (because this spam code is at the end of all the posts)
    To something like this:

    -Post by John Smith
    -By our team
    -etc.

    Cheers and thanks again for your help

    It’s great that this was helping you! Since I found almost nothing about this hack it seemed worth sharing.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Ideal to get rid of hack’ is closed to new replies.