Jump to content

Recommended Posts

Posted

Olá à todos integrantes do PDH, trabalho a anos com hospedagens de websites, games e acompanho o forum sempre que posso. Hoje passando pelo Boteco do Host vi uma postagem de um membro indiguinado por ter seu website copiado, acredito se esse fato fosse com qualquer outra pessoa, certamente também iria ficar p... da vida.

Como já havia comentado, no mundo dos games esse problema de ripagem de website é quase sempre, são utilizados inumeros metodos e programas como, httrack, wget.

O que vou compartilhar com o forum hoje não é algo desconhecido, muitos aqui já utilizam pra fazer URL Amigáveis, redirecionamento, só que com algumas regrinhas a + conseguimos bloquear que o site seja copiado.

O que estou falando é o RewriteEngine

Mas o Que é o mod_rewrite?
O mod_rewrite como é conhecido, ou rewrite engine, é uma módulo do servidor web Apache que é usado para re-escrever URLs antes que os itens solicitados sejam buscados no servidor e isto pode ser usados para vários propósitos. As regras do mod_rewrite serão lidas a partir do seu arquivo .htaccess, por isso é importante sempre colocar o “RewriteEngine On” e sempre testar muito bem as regras para seu site não entrar em loop e ficar inacessível.

Para ativar o RewriteEngine, basta abrir o .htaccess e colocar RewriteEngine on

Irei compartilhar o meu .htaccess, já está com todas as proteções contra cópias e sem nenhum redirecionamento.

  1. Abra o seu .htaccess.
  2. Copie todo o conteúdo entre <IfModule mod_rewrite.c> fechando em </IfModule>
  3. Salve
  4. Baixe o programa httrack e faça um teste, wget existe um .bat na internet com esse nome para windows que faz a mesma função.
  5. Sucesso.
<IfModule mod_rewrite.c>
RewriteEngine on

RewriteRule ^download/([a-z0-9-._]+)/([a-z0-9-._!@#$%¨&*()?,.;/|]+).html/?$ download.php?id=$1 [NC,L]

RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ index.php?url=$1

RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR] 
RewriteCond %{HTTP_USER_AGENT} ^Bot\ mailto:sales@l2jguard.org [OR] 
RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [OR] 
RewriteCond %{HTTP_USER_AGENT} ^Custo [OR] 
RewriteCond %{HTTP_USER_AGENT} ^DISCo [OR] 
RewriteCond %{HTTP_USER_AGENT} ^Download\ Demon [OR] 
RewriteCond %{HTTP_USER_AGENT} ^eCatch [OR] 
RewriteCond %{HTTP_USER_AGENT} ^EirGrabber [OR] 
RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [OR] 
RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [OR] 
RewriteCond %{HTTP_USER_AGENT} ^Express\ WebPictures [OR] 
RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro [OR] 
RewriteCond %{HTTP_USER_AGENT} ^EyeNetIE [OR] 
RewriteCond %{HTTP_USER_AGENT} ^FlashGet [OR] 
RewriteCond %{HTTP_USER_AGENT} ^GetRight [OR] 
RewriteCond %{HTTP_USER_AGENT} ^GetWeb! [OR] 
RewriteCond %{HTTP_USER_AGENT} ^Go!Zilla [OR] 
RewriteCond %{HTTP_USER_AGENT} ^Go-Ahead-Got-It [OR] 
RewriteCond %{HTTP_USER_AGENT} ^GrabNet [OR] 
RewriteCond %{HTTP_USER_AGENT} ^Grafula [OR] 
RewriteCond %{HTTP_USER_AGENT} ^HMView [OR] 
RewriteCond %{HTTP_USER_AGENT} HTTrack [NC,OR] 
RewriteCond %{HTTP_USER_AGENT} ^Image\ Stripper [OR] 
RewriteCond %{HTTP_USER_AGENT} ^Image\ Sucker [OR] 
RewriteCond %{HTTP_USER_AGENT} Indy\ Library [NC,OR] 
RewriteCond %{HTTP_USER_AGENT} ^InterGET [OR] 
RewriteCond %{HTTP_USER_AGENT} ^Internet\ Ninja [OR] 
RewriteCond %{HTTP_USER_AGENT} ^JetCar [OR] 
RewriteCond %{HTTP_USER_AGENT} ^JOC\ Web\ Spider [OR] 
RewriteCond %{HTTP_USER_AGENT} ^larbin [OR] 
RewriteCond %{HTTP_USER_AGENT} ^LeechFTP [OR] 
RewriteCond %{HTTP_USER_AGENT} ^Mass\ Downloader [OR] 
RewriteCond %{HTTP_USER_AGENT} ^MIDown\ tool [OR] 
RewriteCond %{HTTP_USER_AGENT} ^Mister\ PiX [OR] 
RewriteCond %{HTTP_USER_AGENT} ^Navroad [OR] 
RewriteCond %{HTTP_USER_AGENT} ^NearSite [OR] 
RewriteCond %{HTTP_USER_AGENT} ^NetAnts [OR] 
RewriteCond %{HTTP_USER_AGENT} ^NetSpider [OR] 
RewriteCond %{HTTP_USER_AGENT} ^Net\ Vampire [OR] 
RewriteCond %{HTTP_USER_AGENT} ^NetZIP [OR] 
RewriteCond %{HTTP_USER_AGENT} ^Octopus [OR] 
RewriteCond %{HTTP_USER_AGENT} ^Offline\ Explorer [OR] 
RewriteCond %{HTTP_USER_AGENT} ^Offline\ Navigator [OR] 
RewriteCond %{HTTP_USER_AGENT} ^PageGrabber [OR] 
RewriteCond %{HTTP_USER_AGENT} ^Papa\ Foto [OR] 
RewriteCond %{HTTP_USER_AGENT} ^pavuk [OR] 
RewriteCond %{HTTP_USER_AGENT} ^pcBrowser [OR] 
RewriteCond %{HTTP_USER_AGENT} ^RealDownload [OR] 
RewriteCond %{HTTP_USER_AGENT} ^ReGet [OR] 
RewriteCond %{HTTP_USER_AGENT} ^SiteSnagger [OR] 
RewriteCond %{HTTP_USER_AGENT} ^SmartDownload [OR] 
RewriteCond %{HTTP_USER_AGENT} ^SuperBot [OR] 
RewriteCond %{HTTP_USER_AGENT} ^SuperHTTP [OR] 
RewriteCond %{HTTP_USER_AGENT} ^Surfbot [OR] 
RewriteCond %{HTTP_USER_AGENT} ^tAkeOut [OR] 
RewriteCond %{HTTP_USER_AGENT} ^Teleport\ Pro [OR] 
RewriteCond %{HTTP_USER_AGENT} ^VoidEYE [OR] 
RewriteCond %{HTTP_USER_AGENT} ^Web\ Image\ Collector [OR] 
RewriteCond %{HTTP_USER_AGENT} ^Web\ Sucker [OR] 
RewriteCond %{HTTP_USER_AGENT} ^WebAuto [OR] 
RewriteCond %{HTTP_USER_AGENT} ^WebCopier [OR] 
RewriteCond %{HTTP_USER_AGENT} ^WebFetch [OR] 
RewriteCond %{HTTP_USER_AGENT} ^WebGo\ IS [OR] 
RewriteCond %{HTTP_USER_AGENT} ^WebLeacher [OR] 
RewriteCond %{HTTP_USER_AGENT} ^WebReaper [OR] 
RewriteCond %{HTTP_USER_AGENT} ^WebSauger [OR] 
RewriteCond %{HTTP_USER_AGENT} ^Website\ eXtractor [OR] 
RewriteCond %{HTTP_USER_AGENT} ^Website\ Quester [OR] 
RewriteCond %{HTTP_USER_AGENT} ^WebStripper [OR] 
RewriteCond %{HTTP_USER_AGENT} ^WebWhacker [OR] 
RewriteCond %{HTTP_USER_AGENT} ^WebZIP [OR] 
RewriteCond %{HTTP_USER_AGENT} ^Wget [OR] 
RewriteCond %{HTTP_USER_AGENT} ^Widow [OR] 
RewriteCond %{HTTP_USER_AGENT} ^WWWOFFLE [OR] 
RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [OR] 
RewriteCond %{HTTP_USER_AGENT} ^Zeus 
RewriteRule ^.* - [F,L]
</IfModule>

 

Lembrando que o .htaccess não bloqueia o codigo fonte, css ou imagens, maaaas lembrando, quem copia site, não vai abrir codigo fonte, css uma por uma e ir refazendo, seria quase que criar um website.

Na verdade são preguiçosos e sempre querem tudo pronto.

 

Forte Abraço à todos.


Posted

Tem um porém, hj em dia todos sabemos que é fácil manipular próprios useragents, até mesmo em wget, a regra informada é boa, porém para quem tem este conhecimento de manipulação já não serve de novo, não existe método de proteger o front-end. A não ser a boa e velha DMCA e processos.

Posted
15 minutos atrás, Fernando Ferenz disse:

Tem um porém, hj em dia todos sabemos que é fácil manipular próprios useragents, até mesmo em wget, a regra informada é boa, porém para quem tem este conhecimento de manipulação já não serve de novo, não existe método de proteger o front-end. A não ser a boa e velha DMCA e processos.

Exatamente, mas dificultando já é uma mão na roda mesmo porque na grande maioria dos clonadores de websites são preguiçosos e sem muito conhecimento, mas como disse que isso resolve em partes.

Posted
3 horas atrás, Felipe Pinheiro disse:

Obrigado por compartilhar Sr "Smith" hahahaha

Fala mininu Must, esse perfil foi criado pela conta do Gmail, o nome ficou apenas no perfil e agora não da pra trocar!

Abraços...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Do you agree with our terms?

-