cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2063
Views
0
Helpful
3
Replies

Blocking sites using Class-Map

I used the Class-map command to block some websites but it did not work, this is commands i used. #class-map match-any blocksitesclass #match protocol http host *youtube* #match protocol http host *porn* #exit #do show class-map #policy-map blocksitespolicy #class blocksitesclass #drop #drop #exit #do show policy-map #int gi0/1 #service-policy input blocksitespolicy

2 Accepted Solutions

Accepted Solutions

Scott_22
Level 1
Level 1

The websites you're trying to block utilize HTTPS, so the class map matching HTTP will not suffice.

View solution in original post

Deepak Kumar
VIP Alumni
VIP Alumni

Hi,

Those websites are working on the HTTPS protocol so you have to add

match protocol https

 

Regards,

Deepak Kumar

Regards,
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!

View solution in original post

3 Replies 3

Scott_22
Level 1
Level 1

The websites you're trying to block utilize HTTPS, so the class map matching HTTP will not suffice.

Deepak Kumar
VIP Alumni
VIP Alumni

Hi,

Those websites are working on the HTTPS protocol so you have to add

match protocol https

 

Regards,

Deepak Kumar

Regards,
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!

please i need configuration of class-map on how to block sites.
thanks