Forum Discussion

ramann_75062's avatar
ramann_75062
Icon for Nimbostratus rankNimbostratus
Jun 26, 2008

Catch double words in URL requests

Hi together,

 

 

i have the following question:

 

 

Some sample URL requests like

 

1. http://www.somehost.com/index.html?timestamp=1214461652028255801?bla=12

 

2. http://www.somehost.com/index.html?timestamp=1214461652028255812?bla=12

 

3. http://www.somehost.com/index.html?timestamp=1214461652028255903?bla=12

 

4. http://www.somehost.com/index.html?timestamp=1214461652028255803?bla=12

 

5. http://www.somehost.com/index.html?timestamp=1214461652028255903?bla=12

 

6. http://www.somehost.com/index.html?timestamp=1214461652028256003?bla=12

 

7. http://www.somehost.com/index.html?timestamp=1214461652028255803?bla=12

 

8. http://www.somehost.com/index.html?timestamp=....?bla=12

 

 

Now I want catch every request that use the timestamp=xxx more then one times during the last 1000 requests and redirect them to a other page.

 

 

In this example, 4 and 7 are double, the rest are OK.

 

 

Thanks for help

 

bjoern
  • spark_86682's avatar
    spark_86682
    Historic F5 Account
    Do you really need it to be the last 1000 requests, or would it be OK for it to be "more than once during the last N seconds"?
  • spark_86682's avatar
    spark_86682
    Historic F5 Account
    In that case, you should just be able to parse the timestamp value out of the URI and check it against the session table. If it isn't there, then save it in the session table with your N second timeout. If it is there, then that timestamp was seen in the last N seconds, and you can take whatever action you want. Make sense?