Forum Discussion
Wil_Schultz_101
Nimbostratus
Oct 31, 2006Long URI's, part II
I had this thread awhile ago and figured it out on v4, how would I do the same on v9? Click here
else if (substr(http_uri, 0) > 255) {
redirect to "http://www.mysite.com" + substr(http_uri, 0, ...
Wil_Schultz_101
Nimbostratus
Nov 01, 2006Right on, I could have sworn that I tried this exact syntax and did not see the results. Regardless, it is working now and I really appreciate the assistance. The exact syntax for the rule I have is:
elseif { [string length [HTTP::uri]] > 513 }{
log local0.longuri
redirect to http://www.mysite.com[substr [HTTP::uri] 0 513]
}The problem we were seeing before, on v4, was that someone far away on a home DSL had the ability to slow our site by sending long URL's. F5 support thought that it might be due to the amount of iRules that we had running and the box simply had to use too many cpu cycles running these through to get to other things properly. There is probably a more elegant solution but this is the first one that I though of...
Thanks again, you all are great!
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
