KNOWLEDGE BASE

Error "A potentially unsafe URL has been blocked" When Using URL Actions


Published: 02 Dec 2013
Last Modified Date: 15 Nov 2016

Issue

When you try to use a URL action to view local images on Tableau Server or Tableau Online, the following error might occur:
 
A potentially unsafe URL has been blocked

Environment

  • Tableau Server
  • Tableau Online

Resolution

Option 1

Add URL protocols to the safe list by using the tabadmin set command:
  1. On the computer running Tableau Server, open the Command Prompt window as an administrator and run one of the following commands:
    • On a 32-bit computer: cd "C:\Program Files\Tableau\Tableau Server\[version]\bin"
    • On a 64-bit computer: cd "C:\Program Files (x86)\Tableau\Tableau Server\[version]\bin"
  2. At the command prompt, run the following commands in order:
    • tabadmin set vizqlserver.url_scheme_whitelist <protocol>
      For example, tabadmin set vizqlserver.url_scheme_whitelist file to enable the file protocol.
    • tabadmin restart

Option 2

In order to link to content via a URL action within Tableau Online or Tableau Server, it is necessary to host all desired external content on a web server. If the files within the desired folder were hosted on a webpage, the URL Action should work as expected within Tableau Online and Tableau Server.

Cause

The behavior encountered when attempting to link to a local file from a URL action within a dashboard hosted on Tableau Online or Tableau Server is expected. This is due to security implementations within Tableau Online or Tableau Server which address potential vulnerabilities when linking to local files, these security enhancements were implemented in Tableau Server 8.1.
Did this article resolve the issue?