D
Deleted member 17472
Guest
some one using cname and stealing my website content, how i will prevent that?
any idea???
any idea???
[COLOR=#ffffff]<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^olddomain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.olddomain.com$
RewriteRule (.*)$ http://www.newdomain.com/$1 [R=301,L]
</IfModule>[/COLOR]
just make a 301 redirect if _SERVER['HTTP_HOST'] != "yourdomain" or you can do it from htaccess too
Code:[COLOR=#ffffff]<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} ^olddomain.com$ [OR] RewriteCond %{HTTP_HOST} ^www.olddomain.com$ RewriteRule (.*)$ http://www.newdomain.com/$1 [R=301,L] </IfModule>[/COLOR]
chances are if this is a site copying data and used to be a torrent site, they have taken the appropriate measures to make sure it is hard to take down or get in contact with registrar/hosting . have you tried the advice m4dm4n gave you?
OP? Can you tell if they are stealing your content through your RSS feed??? Most scrappers go there cause its pretty simple ... if they are you can try this:
If you know the IP from which they are operating, then you can simply block them from your feed by putting this code in your .htaccess file
RewriteEngine on RewriteCond %{REMOTE_ADDR} ^43.101.100.19 RewriteRule ^(.*)$ http://newfeedurl.com/feed
If you need help doing this try out these links [Apache .htaccess Tutorial] and the [URL Rewriting Guide]
Also the IP address in there is made up off the top of my head if its anyones I am sorry in advance :nemoflow:
Basically they are just going to his site and scraping all his content, code etc... It's simple to do when you are using just basic html. I would block the IP address though its your best bet especially if they are constantly just stealing crap from your site. That won't stop them but it might slow them down (as they can just easily move to another IP address or run through a proxy)