Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I block Spotify on our company network? Unfortunately it's killing our bandwidth and the effect is really serious.

share|improve this question
do you use a squid proxy ? - More info ! – Sirex Feb 10 '12 at 12:36
I'm not using a squid proxy but I am using a Draytek Vigor router capable of block IP ranges and a few other things. – chrism2671 Feb 10 '12 at 12:38
Get yourself an application aware firewall and tell it to block spotify. Sourcefire and Palo Alto both make devices that'll do the trick. – skarface Feb 2 '13 at 18:54

You can fix this sort of thing via technology - basically firewall off the sources and/or ports - but I'm a big believer in not turning a HR problem into a game of cat'n'mouse with your users.

Simply speak to HR, explain the problem and ask them to make a policy regarding this issue and have them communicate it to your users. Then simply agree with HR to do periodic traffic analysis, letting them know of any users breaking this policy and have them deal with the them.

Basically trying to fix it yourself will just get you tied up in knots, and utterly hated too, which as we know is the job of HR already :)

share|improve this answer
Why is it not an option? Fire one person to make an example of them? – Tom O'Connor Feb 10 '12 at 12:54
Surely having HR set the policy is an option? I know you want to put barriers in place but this has to start as a management policy that you help to fix. Technically just do what MDMarra says above. – Chopper3 Feb 10 '12 at 12:54
This is not an option because we rent space to our customers in the office. They are the problem, not our staff. They complain about poor quality internet, we tell them not to use spotify and bit torrent, but it only takes one perpetrator to saturate the connection. A lot of people use our space, it is impossible to enforce it on all of them. We need to fix it technically. – chrism2671 Feb 10 '12 at 13:14
You still need to get some kind of acceptable use policy which everyone using YOUR connection must sign up to. You need these people to take responsibility for their actions, otherwise you may find that you are held responsible for their (potentially criminal) actions! The users are already holding you responsible for everyone else's actions! – dunxd Feb 10 '12 at 14:15
@chrism2671 If spotify answered your question, please add an answer detailing your instructions and accept it as the answer. That way any users coming across this question in search, can be directed to the correct solution. – Regan Nov 6 '13 at 12:57

You can install spotify yourself, sniff the traffic, and block outbound connections to their servers on your firewall.


You can get a rate shaper that does packet inspection and shape the traffic for streaming audio to zero or close to it, then whitelist any legitimate audio streaming sites that you approve.

share|improve this answer
The dorms at my old work did the second method. They did packet shaping, and operated a Squid proxy that was highest priority. It meant the bittorrenters didn't crowd out normal web-traffic. People had to manually use the proxy, but they almost all did because it was much faster than not using it. – sysadmin1138 Feb 11 '12 at 18:01

The IP range also belongs to so the complete list would be
share|improve this answer

The router you mentioned is a perfectly capable router and can block IP addresses, but web filtering is a bit more advanced for most routers in that class.

Assuming that your staff is not made up of computer nerds who waste the day on Stack Exchange know what a DNS server does, I've had success with simply using OpenDNS to block Spotify and other social networking sites. It's a good solution, simple, very non-technical and free.

The downside is that you cannot filter anything finer than the domain name (so you can only filter all of, but not filter while allowing The filters are all-or-nothing, there is no way to allow the bosses to surf for porn without blocking the other users (other than manually overriding their DNS server settings, which I've had to do for my clients using OpenDNS). And, by manually overriding the DNS server settings on the client computers, the OpenDNS filters are easily defeated.

For reference, you would create a (free) account with OpenDNS. Using their webfiltering dashboard (as pictured for one of my clients below), you can add to the list of domains that are blacklisted. OpenDNS management screen
You can then reprogram the DHCP server built into your router to change the DNS settings from whatever your ISP had provided to the OpenDNS servers, in this case, and Anyone going to in the future would be met with an error screen handed out by OpenDNS.

share|improve this answer

If you have a company internal DNS server and block all external DNS traffic via firewall, you can simply refer all relevant name resolutions for Spotify to an internal website of your choosing that can even inform the users about why it's blocked ...

Just create a zone for the domain name or domain names in your DNS and point them to the IP of the "blocker website".

I have proposed this to block Facebook apps when I was asked at my company and we successfully implemented it and it's usually cheaper and less resource intensive than deep packet inspection rules ...

share|improve this answer

I know this is an old question, but I was able to block spotify by blocking these two IP ranges in my firewall:

That blocked the mobile and desktop clients for us.

share|improve this answer

Search IPs by Spotify on site -

share|improve this answer
Welcome to Server Fault! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. – slm Feb 9 '14 at 19:35

protected by MadHatter May 16 '14 at 5:55

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.