Wordpress Duplicate Content Vulnerability Wordpress conteúdo duplicado Vulnerabilidade

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 O seguinte é um Guest Post escrito por Blog Lovedeep Wadhwa que é um analista de tecnologia e dá dicas de blogs diferentes e Internet notícias relacionadas em seu blog Freakitude Freakitude . . Please visit his blog for further articles on blogging and technology. Por favor, visite o seu blog de artigos sobre os blogs e tecnologia.

Wordpress Duplicate Content Bug Wordpress conteúdo duplicado Bug

Greg Mulhauser Greg Mulhauser brought into my attention a trazido a minha atenção uma Duplicate Content Vulnerability Duplicate Content Vulnerabilidade present in Wordpress and Movable type. presentes no Wordpress e 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. Se você é um usuário utilizando Wordpress permalinks em seu blog, então você deve perceber que o conteúdo de suas mensagens é acessível a partir do número infinito de urls diferentes. You just have to append a sequence of extra digits to the end of a post's URL. Você só tem a acrescentar uma seqüência de dígitos extras ao final do URL de um post.

For Example take a look at this Por exemplo, dê uma olhada neste latest post últimas Mensagens from Matt Cutt's Blog. Blog de Matt Cutt's.

The same post is also available on these urls: O cargo também é acessível em urls:

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. Quando tentamos acessar o post destas urls. Wordpress doesn't return a 301 redirect or a 404 error but simply makes the post content available on these url. Wordpress não retornar um redirecionamento 301 ou um erro 404, mas simplesmente faz o conteúdo do post acessível em url.

Fix The Duplicate Content Bug Fix The Bug Duplicate Content

If you are on a self hosted Wordpress blog, you can fix the vulnerability by placing the following rules in your htaccess file. Se você estiver em uma auto-hospedado Wordpress blog, você pode corrigir a vulnerabilidade, colocando as seguintes regras no seu arquivo htaccess.

<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. Se alguém tentar acessar o post destas urls receberá um redirecionamento SEO amigável para o post original.

If you are using www preference on your blog, there are some special precautions to take to avoid a double redirect. Se você estiver usando preferência www em seu blog, há algumas precauções especiais a tomar para evitar um redirecionamento duplo.

I prefer you Eu prefiro você read this post leia este post to know more. para saber mais. The post also gives info about fixing this duplicate content issue for Movable Type blogs and Wordpress MU blogs. O cargo também dá informações sobre como corrigir este problema de conteúdo duplicado para blogs Movable Type e blogs Wordpress MU.

  • Lovedeep Thanks a lot for bringing this issue to the concern of all bloggers out there. Graças Lovedeep muito para trazer esta questão à preocupação de todos os blogueiros lá fora.

    Especially for bloggers like me who are very much concerned about their blog search engine optimization this post is truly a must read. Especialmente para os blogueiros como eu, que estão muito preocupados com seu blog Search Engine Optimization este post é realmente um deve ler.

    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. Tenho medo só porque eu tenho a preferência www jogo no meu blog e ainda estou confuso como corrigir o bug sem disparar um redirecionamento duplo.
  • Many thanks for bringing this news to light. Muito obrigado por trazer esta notícia à luz. And thanks for the remedial measure as well ;) E graças a medida de reparação, bem;)
  • Thanks for the comments. Obrigado pelos comentários. :) :)

    If you are using www preference, insert Se você estiver usando preferência www, insira http://www.yourdomain.com/ http://www.yourdomain.com/ in front of the $1 to avoid a double redirect. em frente ao US $ 1 para evitar um redirecionamento duplo.


    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, Obrigado, Lovedeep e DJ,

    Thats a very good tip. Isso é uma dica muito boa. I'll try it and see if it works to get better SEO. Eu vou tentar e ver se ele trabalha para obter um melhor SEO.

    Now its harder to know about supplemental pages, because of the Google changes, since supplemental pages are usually because of duplicate content. Agora, sua mais difícil saber sobre as páginas suplementares, por causa das mudanças do Google, desde páginas suplementares são geralmente por causa do conteúdo duplicado.
  • Lovedeep Buddy thanks a lot for helping me out Graças Lovedeep Buddy muito para me ajudar

    DarrinW You are welcome :) DarrinW You are welcome:)
  • You are welcome DJ :) DJ You are welcome:)
  • Fantastic tip - thanks very much for the heads up. Fantastic dica - muito obrigado pela atenção.
  • Thank you, this is an amazing post, great share. Obrigado, este é um lugar incrível, grandes partes.
blog comments powered by Disqus blog comentários powered by Disqus