mark_beynon_593
Apr 16, 2008Nimbostratus
More efficient stream iRule
I am very new to iRules, so be patient but have an interesting problem to overcome.
Note all access is via HTTPS:
requirement: remove external access to robots.txt file and an admin page that can not be restricted on the server it self.
our original solution:
use an iRule with a HTTP Profile to redirect the request to an error page when "robots.txt" or "admin" is found in the URI.
This worked fine, apart from it broke some of the extended capability of the website:- The website also offers tunneled TS an Citrix through a client side applet.
With HTTP profile applied the tunneled TS/Citrix are not understood and no longer work.
Revised solution:
Use a Stream to replace "robots.txt" and "admin" in the content with "error". The replacement term error would cause an unknown URL, and the server would redirect to the front page.
This works fine.
But i am sure there will be some clever ways of doing this with an iRule? such as only checking requests
any suggestions for how to do this?
Thanks