Forum Discussion
green_frog_2046
Nimbostratus
Jul 08, 2016irules blocking url
Im new to irule
I need to have access requests to e.g. f5.com URL ending in /audio.mp3 blocked by the F5.
Ive asked mr google and found this link https://devcentral.f5.com/questions/how-to...
Yann_Desmarest
Cirrus
Jul 08, 2016Hi,
You have the irules wiki here : https://devcentral.f5.com/wiki/irules.homepage.ashx
You can also have a look at the LTM policies.
Otherwise, you can use a similar irule :
when HTTP_REQUEST {
if { [HTTP::host] contains "f5.com" and [URI::basename [HTTP::path]] eq "audio.mp3" } {
HTTP::respond 403 content "Access Denied" Connection Close
}
}
I have a question regarding your post, do you want to block incoming request from internet users to your own servers. Or the opposite, use F5 as a Forward Proxy and block outgoing requests to internet websites ?
Yann_Desmarest
Cirrus
Jul 08, 2016If you are talking about forward proxy. I suggest to have a look at this code : HTTP_PROXY_REQUEST
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