regex url1 “facebook.com”
regex url2 “myspace.com”
regex url4 “twitter.com”

class-map type regex match-any urlreg
match regex url4
class-map type regex match-any urlreg
match regex url1
match regex url2
match regex url4

class-map type inspect http match-all http_url_policy
match request header host regex class urlreg

access-list http permit tcp any any eq 80

class-map acl
match access-list http

policy-map type inspect http http_policy
parameters
class http_url_policy
drop-connection

policy-map httpdrop
class acl
inspect http http_policy

service-policy httpdrop interface outside