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.
desc uplink port
ip access-group urls_I_dont_like in
ip access-list ext urls_i_dont_like
deny tcp any host 22.214.171.124 eq www
deny tcp any host 126.96.36.199 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 188.8.131.52