Personal
Feed overload
4 Apr 2003
There are a couple of people requesting the Simplelinks RSS feed two dozen times an hour. If that’s you, you’ll notice that you no longer have access to the feed. Instead you get this RSS feed.
So how’s that done?
If your Web server is Apache and you have mod_rewrite installed, add the following to a file called .htaccess
in the directory where your feed is located.
RewriteEngine On<br />
RewriteCond %{REMOTE_ADDR} ^10.0.0.1$ [OR]<br />
RewriteCond %{REMOTE_ADDR} ^10.0.0.2$<br />
RewriteRule rss.xml banned.xml [R]
Replace the 10.0.0.1 and 10.0.0.2 with the IP addresses you want to ban. Replace rss.xml with the filename you are restricting access to and banned.xml with the file you want to display them instead.