Wordpress Duplicate Content Vulnerability Wordpress Duplicate Content Vulnerability

Wordpress

The following is a Guest Blog Post written by Lovedeep Wadhwa who is a technology analyst and gives you different blogging tips and Internet related news at his blog Het volgende is een gast Blog Post geschreven door Lovedeep Wadhwa die is een technologie analist en geeft je verschillende blogging tips en Internet gerelateerde nieuws op zijn blog Freakitude Freakitude . . Please visit his blog for further articles on blogging and technology. Bezoek zijn blog voor meer artikelen over bloggen en technologie.

Wordpress Duplicate Content Bug Wordpress Duplicate Content Bug

Greg Mulhauser Greg Mulhauser brought into my attention a gebracht mijn aandacht een Duplicate Content Vulnerability Duplicate Content Vulnerability present in Wordpress and Movable type. aanwezig in Wordpress en Movable Type.

If you are a Wordpress user using permalinks on your blog then you must notice that the content of your posts is accessible from infinite number of different urls. Als u een gebruiker met behulp van Wordpress permalinks op je blog dan moet u merken dat de inhoud van uw berichten is toegankelijk vanaf oneindig aantal verschillende URL's. You just have to append a sequence of extra digits to the end of a post's URL. Je hoeft alleen een opeenvolging van extra cijfers toe te voegen aan het einde van de URL van een bericht.

For Example take a look at this Bijvoorbeeld een kijkje nemen op deze latest post Laatste bericht from Matt Cutt's Blog. van Blog Matt Cutt's.

The same post is also available on these urls: Hetzelfde bericht is ook beschikbaar op deze URL's:

http://www.mattcutts.com/blog/minty-fresh-indexing/123456/ http://www.mattcutts.com/blog/minty-fresh-indexing/123456/

http://www.mattcutts.com/blog/minty-fresh-indexing/45678/ http://www.mattcutts.com/blog/minty-fresh-indexing/45678/

When we try to access the post from these urls. Wanneer we proberen om toegang tot de post van deze URL's. Wordpress doesn't return a 301 redirect or a 404 error but simply makes the post content available on these url. Wordpress niet terug een 301 redirect of een 404-fout maakt, maar gewoon de functie-inhoud beschikbaar op deze url.

Fix The Duplicate Content Bug Fix De Duplicate Content Bug

If you are on a self hosted Wordpress blog, you can fix the vulnerability by placing the following rules in your htaccess file. Als u op een zelf gehoste Wordpress blog, kunt u de kwetsbaarheid te lossen door het plaatsen van de volgende regels in je htaccess-bestand.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} !.*(/page/[0-9]*/?)$
RewriteCond %{REQUEST_URI} !^/200[0-9]/?$
RewriteCond %{REQUEST_URI} !^/200[0-9]/[01][0-9]/?$
RewriteCond %{REQUEST_URI} !^/200[0-9]/[01][0-9]/[0-3][0-9]/?$
RewriteRule (.*)(/[0-9]+/?)$ $1/ [R=301,L]
</IfModule>

If someone tries to access the post from these urls will get a SEO friendly redirect to the original post. Als iemand probeert om de post van deze URL's toegang zal een SEO vriendelijke redirect krijgen naar de originele post.

If you are using www preference on your blog, there are some special precautions to take to avoid a double redirect. Als u www voorkeur op uw blog gebruikt, zijn er enkele speciale voorzorgsmaatregelen te nemen om een dubbele redirect te voorkomen.

I prefer you Ik verkies je read this post lees dit bericht to know more. weten. The post also gives info about fixing this duplicate content issue for Movable Type blogs and Wordpress MU blogs. De post geeft ook info over de vaststelling van deze dubbele inhoud kwestie voor Movable Type blogs en Wordpress MU blogs.

  • Lovedeep Thanks a lot for bringing this issue to the concern of all bloggers out there. Lovedeep Bedankt voor het instellen van deze kwestie aan de zorg van alle bloggers die er zijn.

    Especially for bloggers like me who are very much concerned about their blog search engine optimization this post is truly a must read. Speciaal voor bloggers zoals ik die zeer veel zorgen over hun blog zoekmachine optimalisatie dit bericht is echt een must read.

    I am scared only because I do have the www preference set on my blog and I am still confused how to fix the bug without triggering a double redirect. Ik ben alleen bang, want ik heb het www voorkeur ingesteld op mijn blog en ik ben nog steeds verward hoe de bug op te lossen zonder toepassing van een dubbele redirect.
  • Many thanks for bringing this news to light. Veel dank voor het instellen van dit nieuws aan het licht. And thanks for the remedial measure as well ;) En bedankt voor de corrigerende maatregel ook;)
  • Thanks for the comments. Bedankt voor de reacties. :) :)

    If you are using www preference, insert Als u www voorkeur, plaatst http://www.yourdomain.com/ http://www.yourdomain.com/ in front of the $1 to avoid a double redirect. tegenover de $ 1 om te voorkomen dat een dubbele redirect.


    RewriteEngine On
    RewriteCond %{REQUEST_URI} !.*(/page/[0-9]*/?)$
    RewriteCond %{REQUEST_URI} !^/200[0-9]/?$
    RewriteCond %{REQUEST_URI} !^/200[0-9]/[01][0-9]/?$
    RewriteCond %{REQUEST_URI} !^/200[0-9]/[01][0-9]/[0-3][0-9]/?$
    RewriteRule (.*)(/[0-9]+/?)$ http://www.domain.com/$1/ [R=301,L]

    RewriteEngine On
    RewriteCond %{REQUEST_URI} !.*(/page/[0-9]*/?)$
    RewriteCond %{REQUEST_URI} !^/200[0-9]/?$
    RewriteCond %{REQUEST_URI} !^/200[0-9]/[01][0-9]/?$
    RewriteCond %{REQUEST_URI} !^/200[0-9]/[01][0-9]/[0-3][0-9]/?$
    RewriteRule (.*)(/[0-9]+/?)$ http://www.domain.com/$1/ [R=301,L]

    RewriteEngine On
    RewriteCond %{REQUEST_URI} !.*(/page/[0-9]*/?)$
    RewriteCond %{REQUEST_URI} !^/200[0-9]/?$
    RewriteCond %{REQUEST_URI} !^/200[0-9]/[01][0-9]/?$
    RewriteCond %{REQUEST_URI} !^/200[0-9]/[01][0-9]/[0-3][0-9]/?$
    RewriteRule (.*)(/[0-9]+/?)$ http://www.domain.com/$1/ [R=301,L]
  • Thanks, Lovedeep and DJ, Thanks, Lovedeep en DJ,

    Thats a very good tip. Dat is een heel goede tip. I'll try it and see if it works to get better SEO. Ik zal proberen en zien of het werkt beter SEO krijgen.

    Now its harder to know about supplemental pages, because of the Google changes, since supplemental pages are usually because of duplicate content. Nu is het moeilijker om te weten over aanvullende pagina's, als gevolg van de Google veranderingen, omdat aanvullende pagina's, meestal als gevolg van dubbele inhoud.
  • Lovedeep Buddy thanks a lot for helping me out Lovedeep Buddy thanks a lot voor het helpen me

    DarrinW You are welcome :) DarrinW U bent welkom:)
  • You are welcome DJ :) U bent van harte welkom DJ:)
  • Fantastic tip - thanks very much for the heads up. Fantastische tip - Hartelijk dank voor de heads-up.
  • Thank you, this is an amazing post, great share. Dank u, dit is een geweldige post, grote delen.
blog comments powered by Disqus blog comments powered by Disqus