I'd actually say using a permanent redirect (301, I believe) to your root (or that controller's index), rather than to the 404 page might be a better solution. If your users/visitors won't see it since you're not linking to it, it isn't really a bad solution, and I doubt you'd want any search engines indexing 404 errors in association with your site/domain. If it was a hacker, I don't think I'd send them a 404 message either, I'd just redirect them...if it was a Safari user, I'd rather give them a graceful degredation than a 404 just as well. That's just me though.
Standard incorrect addresses should still receive a 404. A 404 does serve a very important purpose. On Nov 6, 9:00 am, Mathew <[EMAIL PROTECTED]> wrote: > Hi Mike, > > If your using Apache it has some features in the htaccess file that > will allow you to disable access to your server for bots causing you > trouble. > > In your Cake 404 display page keep track of the number of times a 404 > is generated per IP address, and if it exceeds a threshold log that IP > address to a text file. > > Humans browsing a website will not generate many 404 messages, even if > they have bad bookmarks, or follow old links from search engines. So > an IP address requesting more then one hundred 404 errors is likely a > problem bot. Each time a 404 page is display log the IP to a database > with a counter. When the counter reaches your limit add that IP > address to a text file. > > In your .htaccess you can load this text file of IP addresses and > apply rules to those addresses. It's up to you if you wish to display > a static access denied Html page, or simply throw a connection > refused. > > Sorry I don't remember the commands for the htaccess file. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
