Re: Re: /?feed=rss2
| From: | Stut | Date: | Tue, 11 Mar 2008 09:08:23 +0000 |
| Subject: | Re: Re: /?feed=rss2 | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-271260@lists.php.net to get a copy of this message | ||
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/
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 Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php