Redirect chinese spam links to 404 endig in *.jp
-
Hi,
Your plugin is what I needed after some days of search. It seems and works awesome.
Great support, guys like you rock.<sharing my issue with other so it can help>
In short:
Can you help me make a working expression to 404 all URLS ending in .jp
Can you help me make a working expression to 404 all URLS with keyword u_b in the URL?Story (interesting)
Due to a vulnerability in an old joomla version our chinese friends have been able to have had access to my Webmaster Tools console as owner, via dropping a verification file in the root. Wit that access submitting thousands of spamlinks to be indexed, which where copied to my server too.
After dropping the bad bad idea to try to upgrade joomla (years behind, paying plugins) I migrated sucessfully to wordpress (should have done it ages ago)
Webmaster Tools succesfully indexed 4000 links, and google search and cache is just full of this chinese garbage.I cleaned all, rebmitted a sitemap, but google does not allow you to BULK unregister SPAM links. Great. One by one it does.
More annoying: wordpress seems to trow a 200 (OK) or a 301 (redirect) > 200 (OK) to any of this spam links, and apparently almost anything I add to the URL. Also with plugins disabled, I was unable to generate 1 404 it all with to the search > not gound (but 200 (OK) So Google thinks its still valid. Amepty, but valid. damned.
For the crawling I excluded it in robots.txt such:
Disallow: *.jp* #block access to crawlers for URLS containing .jpMore ideally would have it crawled and get a noindex but not if this is possible, since that is valid for migrating pages.
Next step, make wordpress bloody trow a 404 for all spam URLS except my normal pages and posts
I edited my 404.php to be completely empty and added via notepad and plain text
404 – page not found
, so no template, archive, author tag links etc are found. The oldest 404 page on the internet to make sure google understand the links are not here anymore.Spam link Type 1:
send similar urls to 404: Adding the whole line worked like a charm:
https://www.example.com/?bqp-kd6014c/u_b-jbc/u_b-jClsQa-a2b7b.jp
so I sent /?bqp-kd6014c/u_b-jbc/u_b-jClsQa-a2b7b.jp to 404 (server response!)Tested with https://tools.seobook.com/server-header-checker/ Bam, it trows 404 (Not Found), it opens my 404.php within my theme folder, and shows in the browser as https://www.example.com/404.php with plain text:
404 – page not found.
Success!Now my issue: I could not get the .jp ending working: *.jp / *.jp*, / ?*jp / …
– Can you help me make a working expression to 404 all URLS ending in .jp
– Can you help me make a working expression to 404 all URLS with keyword u_b in the URL?Spam link Type 2: (exactly like below I can find in google search…, 2 domains in 1 URL. How can google index this?
Note: URLS ending in .jp will cover both spam links, but the keyword can be useful for me, and others later.
Thinking about donating :))
- The topic ‘Redirect chinese spam links to 404 endig in *.jp’ is closed to new replies.