<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I doubt your error pages are going to rank very high in the search engines!<div><br></div><div>If you know that certain URLs that bots are prone to poke are always going to throw exceptions, tell the bots not to go there... Chances are, they mark you down for having lots of error pages anyway, so by removing those pages from what the bots index, you might well <i>improve</i> your rankings...</div><div><br></div><div>I didn't suggest to tell the bots to stay away from your page, btw - only from the spurious URLs which the bots hit all the time and which generate errors each time. I'm assuming there's a pattern to them.</div><div><br></div><div>Daniel</div><div><br><div><div>On 31 Jul 2008, at 11:5731 Jul 2008, Andrea (Q) wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>I just don't want to receive it, i don't know if it's a good idea to tell the bots to stay away from my page, more pages are indexed more people can see my app, no?<br>But that's funny because actually i've some troubles with the search engines, my domain disappear :D<br><br>On Jul 31, 2008, at 11:34 AM, Thomas R. Koll wrote:<br><br><blockquote type="cite">What exception?<br></blockquote><blockquote type="cite">ActionController::InvalidAuthenticityToken is the most common for<br></blockquote><blockquote type="cite">me but I don't bother the mails so the following tips are just theory:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">The exception is raised in ActionController::RequestForgeryProtection.verify_authenticity_token<br></blockquote><blockquote type="cite">so you might want to overwrite it and for example redirect to something else.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">An alternative is to skip the filter for your create (or update) method and<br></blockquote><blockquote type="cite">in those methods do like<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">skip_before_filter :verify_authenticity_token, :only => :create<br></blockquote><blockquote type="cite">def create<br></blockquote><blockquote type="cite"> render :new and return unless verified_request?<br></blockquote><blockquote type="cite"> # ...<br></blockquote><blockquote type="cite">end<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">ciao, tom<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Am 31.07.2008 um 12:16 schrieb Andrea (Q):<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">Hi,<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">everyday i receive a lot of exceptions but the most of are from bot, there is a way to manage that situation? i don't want to receive the exceptions raised by a bot. I think that i could try to read the header of the request and the HTTP_USER_AGENT field but maybe there is something better.<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">--<br></blockquote><blockquote type="cite">Thomas R. "TomK32" Koll || <a href="http://tomk32.de">http://tomk32.de</a> || <a href="http://ananasblau.com">http://ananasblau.com</a><br></blockquote><blockquote type="cite">just a geek trying to change the world<br></blockquote><blockquote type="cite">Skype: TomK32 || Mail: <a href="mailto:tomk32@gmx.de">tomk32@gmx.de</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">Chat mailing list<br></blockquote><blockquote type="cite"><a href="mailto:Chat@lists.lrug.org">Chat@lists.lrug.org</a><br></blockquote><blockquote type="cite"><a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br></blockquote><br>_______________________________________________<br>Chat mailing list<br><a href="mailto:Chat@lists.lrug.org">Chat@lists.lrug.org</a><br>http://lists.lrug.org/listinfo.cgi/chat-lrug.org<br></div></blockquote></div><br></div></body></html>