Forum Discussion
j_carl_39543
Nimbostratus
Nov 29, 2012Creating iRule to mask/hide URL
Hi All,
13 Replies
- hoolio
Cirrostratus
Hi Carl,
The iRule was tailored very specifically for a customer's application. It was ~1200 lines of code. It's not feasible for you to adapt that iRule to a new application.
Aaron - j_carl_39543
Nimbostratus
when HTTP_RESPONSE {
set server_location [string tolower [HTTP::header Location]]
if {$server_location starts_with "172.10.10.10:8050/cgi-bin/"} {
HTTP::header replace Location [string map -nocase {172.10.10.10:8050/cgi-bin/lansweb 172.10.10.10:8050/} [HTTP::header value Location]]
}
}
I have created an iRule to limit the uri displayed on the URL but it seems that it was not functioning as what it is created for. Can you guys help me if I missed something or need additional configurations. - What_Lies_Bene1
Cirrostratus
The location header is mainly only used in redirections, it's not going to help you change the URL displayed in the browser when a normal 200 response is sent.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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