well that was my personal trial to get a 400 error. I just want to find out why there are about 5-10 400 errors on my webpage per day. and if they are caused by some bad bots or something. So I can lock them out with my firewall. If its just typos I won't do a thing. Right now I'm saving the request_url and the error code. But this wont help me at all if someone gets a 400 error on a working page. Thats why I asked. other things which cause 400 errors are .../function(testerror) pretty much every non letter other than ? and /
On Friday, April 19, 2013 9:06:43 PM UTC+2, Niphlod wrote: > > given that you want a ready-to-use solution, can you give an example ? > with /app/controller/function"#" you can't get what follows #, but the > first " is in requested_uri as it should be. > > > > On Friday, April 19, 2013 8:53:52 PM UTC+2, BlueShadow wrote: >> >> Thats no anchor thats the first random character i found. Try it it >> fails. Code 400 >> Am 19.04.2013 20:50 schrieb "Niphlod" <[email protected]>: >> >>> uhm.... you can't (even in a normal request) have the value that is >>> assigned with an #anchor (call it anchor, fragment, whatever) ... that >>> doesn't get passed to the webserver....so you can't have a page that fails >>> because of that #part >>> >>> On Friday, April 19, 2013 8:22:21 PM UTC+2, BlueShadow wrote: >>>> >>>> Hi I got a custum error page which saves some of the data to give me a >>>> quick overview of the why those errors happen. it stores the error code >>>> the >>>> request.url and the useragent. my problem is I get a bunch of 400 errors. >>>> and I want to know what the users/bots typed in exactly. request_uri gives >>>> theurl of the error page request.url the URL they typed but stops at the >>>> function. >>>> so if I type >>>> www.exampe.com/controller/**function<http://www.exampe.com/controller/function>"#" >>>> >>>> I get a 400 error but how can I get those 3 characters in my error log. >>>> >>> -- >>> >>> --- >>> You received this message because you are subscribed to a topic in the >>> Google Groups "web2py-users" group. >>> To unsubscribe from this topic, visit >>> https://groups.google.com/d/topic/web2py/qfl8qCtZJe8/unsubscribe?hl=en. >>> To unsubscribe from this group and all its topics, send an email to >>> [email protected]. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >>> >> -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

