[PHP] Re: /?feed=rss2

2008-03-11 Thread John Taylor-Johnston
Any other inspiration? Thanks, John John Taylor-Johnston wrote: It used to have a feed, by accident. Now someone munches up too much bandwidth. http://www.foo.com/?feed=rss2 How can I divert this to 127.0.0.1 or something to convince this one to leave my bandwidth alone? John -- PHP General

Re: [PHP] Re: /?feed=rss2

2008-03-11 Thread Per Jessen
John Taylor-Johnston wrote: I do. CPanel too. How would I write that into an htaccess ? The RewriteRule syntax is the same in .htaccess /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: /?feed=rss2

2008-03-11 Thread Stut
On 11 Mar 2008, at 07:09, John Taylor-Johnston wrote: Any other inspiration? Assuming the index is a PHP script stick this at the top... ?php if (!empty($_GET['feed'])) { header('404 Not Found'); echo 'Go away!'; exit; } ? -Stut -- http://stut.net/

[PHP] Re: /?feed=rss2

2008-03-10 Thread John Taylor-Johnston
I do. CPanel too. How would I write that into an htaccess ? Shawn McKenzie wrote: John Taylor-Johnston wrote: If you have apache, I would use a rewrite rule to return not found. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php