Forum Discussion
Restrict Access
Folks
i have below requirement , is this possible to achieve using Irule or ASM
Website IP 1.1.1.1
DNS. abc.com
If any user try to access https://abc.com allow ,if any user try to access https://1.1.1.1 block , basically i want to block all users who wants to access the URL using IP instead of FQDN
Thanks
Snl
- Mitheor
Cirrus
Hi,
Maybe something link this?
- when HTTP_REQUEST {
- If { !([HTTP::host] equals "1.2.3.4") } {
- Reject
- }
- }
- Snl
Cirrostratus
requirement slight different now
anyone trying to access https://1.1.1.1 should redirect to https:/abc.com
client should not able browser url with IP address
thanks
Snl
try a search on how to do a redirect in an irule.
look here: https://clouddocs.f5.com/api/irules/HTTP__redirect.html
use that instead of the redirect and you should be good to go
Recent Discussions
Related Content
* 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