Forum Discussion
ramann_75062
Nimbostratus
Jun 26, 2008Catch 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_86682Historic F5 AccountDo 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"?
- ramann_75062
Nimbostratus
yes, that should be also OK - spark_86682Historic F5 AccountIn 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?
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects