Allow only specific URLs on 861 router using MQC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2013 09:18 PM - edited 03-04-2019 07:10 PM
I configured a Cisco 861 router to allow only youtube.com and block all other URLs.
I used the below configuration but is not working. Actually everything is blocked even the access to the router.
Is there any other way to acheive this requirement?
class-map match-any YOUTUBE
match protocol http host *youtube.com*
class-map match-all YOUTUBE-ONLY
match not class-map YOUTUBE
policy-map WEB-ACCESS
class YOUTUBE-ONLY
drop
interface Vlan1
service-policy input WEB-ACCESS
- Labels:
-
Other Routers

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2013 11:40 PM
Hi Michalis
Try to modify policy-map WEB-ACCESS ->
policy-map WEB-ACCESS
class YOUTUBE-ONLY
drop
class class-default
Best Regards
Please rate helpful posts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2013 10:58 AM
Thanks Blau for your response.
I solved the problem by adding "match protocol http" to match only http protocol and not all traffic.
class-map match-all YOUTUBE-ONLY
match not class-map YOUTUBE
match protocol http
