Showing results for 
Search instead for 
Did you mean: 

Access List URL Filtering

Rawa Salah
Level 1
Level 1

Hi all

please how can i filter some URL in my MultilayerSwitch Via Access List (ACL)  ? and whats the commands......

please guide me

2 Replies 2

Seb Rupik
VIP Alumni
VIP Alumni

Hi Rawa,

URL filtering is what you're after, but this is only availble on applicances which offer packet inspection allowing you to filter using regular expressions to pick out certain URLs.

The closest you will be able to achieve with a switch is to find the IPs of the URLs you wish to deny access to (I assume that's what you want to do?) and set up an ACL on the switchport connecting to your uplink. The ACL would be created to deny all IP traffic to the hosts you specify.


inteface gi1/0/1

desc uplink port

ip access-group urls_I_dont_like in


ip access-list ext urls_i_dont_like

deny tcp any host eq www

deny tcp any host eq www

permit tcp any any


...this would block HTTP access to the two hosts specified, and allow all other traffic. If you want to block all IP traffic to the hosts use this instead:

deny ip any host



Thiyagu VG
Level 1
Level 1

It depends on, which platform you are going to set it up.

Could you share the platform details and the exact requirement.

Depends on you requirement you can go with URL Filtering or Cisco New Content Filtering.

More info refer:

You can refere few cisco documents to get more details about it.



Review Cisco Networking for a $25 gift card