Tired of getting your content stolen from your RSS Feed and reposted on splogs? Here is a simple solution for you. I was inspired by RSnake to add some code to my .htaccess file to stop some of the people from scraping my feeds and will show you how to do the same.
Basically, all you need is the IP address of whoever is stealing your feed and you can deliver whatever content you want to them. One way you can get it is to “ping” the site - go to a DOS prompt and type “ping spammersite.com”. It’ll spit out the IP for you. Traceroute (tracert) will also work.
In my case, I just redirected any instance from their IP address back on their own feed. I’m not sure yet, but this may cause a loop in there server to post things over and over again.
If you want to delivery any kind of custom content to a specific IP address, you just need to add these 3 lines of code to your .htaccess files.
RewriteEngine on
RewriteCond %{REMOTE_ADDR} ^69.16.226.12
RewriteRule ^(.*)$ http://newfeedurl.com/feed
Where 69.16.226.12= the IP address you want to send to and http://newfeedurl.com/feed is the custom content you want to send them.
You can always test what content will be delivered by changing the IP address to that of the machine you are working on. You can check your IP Address here.
You can be as creative as you wish with what you feed them. You can even use them to blog and ping for you if you like. The possibilities are endless.
So why is a site about Search Engine Spamming teaching people how to stop thier content from being splogged? Because I am a dirty link whore and this is the kind of thing that people like to link to.
It might even be the type of story that people like to Digg.
Tagged: Security, Cloaking, Design |