cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
496
Views
0
Helpful
1
Replies

blocking website on ASA

Imran Ahmad
Level 2
Level 2

I want to block accessing a link in my org like-   www.yahoo.com ,   i added the followings into my ASA,  but after adding the following config, i can not access  when i type  -    yahoo.com

but if i type             -    www.yahoo.com     then it works, and opens the website.

any one can help me how to bock full web links please ?

here is my config:

regex mydomain1 *.yahoo\.com*.

class-map type regex match-any webBlocklist
match regex mydomain1

class-map type inspect http match-all domainclass
match request header host regex class webBlocklist

class-map webtraffic
match port tcp eq www

policy-map type inspect http http-policy
parameters
class domainclass
reset log

policy-map web-policy
class webtraffic
inspect http http-policy

service-policy web-policy interface outside

1 Accepted Solution

Accepted Solutions

Jennifer Halim
Cisco Employee
Cisco Employee

There is a missing \ on your regex configuration.

It should have been:

regex mydomain1 "\.yahoo\.com"

View solution in original post

1 Reply 1

Jennifer Halim
Cisco Employee
Cisco Employee

There is a missing \ on your regex configuration.

It should have been:

regex mydomain1 "\.yahoo\.com"

Review Cisco Networking for a $25 gift card