Forum Discussion
ZhenDong_117274
Nimbostratus
Dec 04, 2013How to use Irules deny someone access some website
when HTTP_REQUEST { if { {matchclass [IP::remote_addr] not equals $::vip} && {HTTP::uri contains $::website}}{ HTTP::redirect http://www.google.com
} }
V9.4.8 The website is String Type Date Group .example : youtube.com The vip is address Type Date Group. example:192.168.2.2 I have a Virtual Server 0.0.0.0:80 Type is Standard and load is irule,Then I can not access any website:80. What should I to do for this.
1 Reply
- IheartF5_45022
Nacreous
Try this;
when HTTP_REQUEST { if { [matchclass [IP::remote_addr] eq dg_ip_whitelist] && [matchclass [HTTP::host] eq dg_website_whitelist]} { HTTP::redirect http://www.google.com } }
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