Forum Discussion
anujl_5566
Nov 07, 2011Nimbostratus
access rule for specific urls using Data group list
I wanted to give access to certain url's IF clients come from specific pool of IP's. I looked at devcentral and using the tips I found I wrote this url and it is working. Thought of sharing,
if { [matchclass [string tolower [HTTP::path]] equals $::send_verify_pin_urls] } {
if { not [matchclass [IP::client_addr] equals $::SEND_VERIFY_ALLOWED_IPs] } {
HTTP::respond 200 content "Not AllowedYou are not allowed to access this site!"
}
else {
log local0. "Life is good"
}
}
if { [matchclass [string tolower [HTTP::path]] equals $::IVR_urls] } {
if { not [matchclass [IP::client_addr] equals $::IVR_API_IPs ] } {
HTTP::respond 200 content "Not AllowedYou are not allowed to access this site!"
}
else {
log local0. "Life is good"
}
}
- hooleylistCirrostratusNice work. A few notes:
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