diff --git a/src/Form/StaticServerConfigForm.php b/src/Form/StaticServerConfigForm.php
index a715b6d..b820f3a 100644
--- a/src/Form/StaticServerConfigForm.php
+++ b/src/Form/StaticServerConfigForm.php
@@ -35,6 +35,7 @@ class StaticServerConfigForm extends ConfigFormBase {
     $default_js = $base_url;
     $default_files = $base_url;
     $default_ext = 'gif jpg jpeg png';
+    $admin_disabled = FALSE;
 
     if (!empty(\Drupal::config('static_server.settings')->get('static_server_css_path'))) {
       $default_css = \Drupal::config('static_server.settings')->get('static_server_css_path');
@@ -48,6 +49,9 @@ class StaticServerConfigForm extends ConfigFormBase {
     if (!empty(\Drupal::config('static_server.settings')->get('static_server_files_extension'))) {
       $default_ext = \Drupal::config('static_server.settings')->get('static_server_files_extension');
     }
+    if (!empty(\Drupal::config('static_server.settings')->get('static_server_admin_disabled'))) {
+      $admin_disabled = \Drupal::config('static_server.settings')->get('static_server_admin_disabled');
+    }
 
   	$form['static_server']['static_server_css_path'] = array(
       '#title' => t("CSS Files Path"),
@@ -72,6 +76,11 @@ class StaticServerConfigForm extends ConfigFormBase {
       '#type' => 'textfield',
       '#default_value' => $default_ext,
     );
+    $form['static_server']['static_server_admin_disabled'] = array(
+      '#title' => $this->t('Disabled in administration'),
+      '#type' => 'checkbox',
+      '#default_value' => $admin_disabled,
+    );
     return parent::buildForm($form, $form_state);
   }
 
@@ -83,6 +92,7 @@ class StaticServerConfigForm extends ConfigFormBase {
     $static_js = $form_state->getValue('static_server_js_path');
     $static_file = $form_state->getValue('static_server_files_path');
     $static_extensions = $form_state->getValue('static_server_files_extension');
+    $admin_disabled = $form_state->getValue('static_server_admin_disabled');
 
     // Load configuration object and save values.
     $config = \Drupal::getContainer()->get('config.factory')->getEditable('static_server.settings');
@@ -90,6 +100,7 @@ class StaticServerConfigForm extends ConfigFormBase {
     $config->set('static_server_js_path', $static_js)->save();
     $config->set('static_server_files_path', $static_file)->save();
     $config->set('static_server_files_extension', $static_extensions)->save();
+    $config->set('static_server_admin_disabled', $admin_disabled)->save();
   	drupal_set_message($this->t('The settings have been saved'), 'status');
   }
 }
diff --git a/static_server.module b/static_server.module
index d15195c..9e5dc5c 100644
--- a/static_server.module
+++ b/static_server.module
@@ -17,52 +17,61 @@ function static_server_file_url_alter(&$uri) {
   $css_file_extensions = array('css');
   $js_file_extensions = array('js');
 
-  if (!empty(\Drupal::config('static_server.settings')->get('static_server_css_path'))) {
-    $css_path = \Drupal::config('static_server.settings')->get('static_server_css_path');
-  }
-  if (!empty(\Drupal::config('static_server.settings')->get('static_server_js_path'))) {
-    $js_path = \Drupal::config('static_server.settings')->get('static_server_js_path');
-  }
-  if (!empty(\Drupal::config('static_server.settings')->get('static_server_files_path'))) {
-    $files_path = \Drupal::config('static_server.settings')->get('static_server_files_path');
-  }
-  if (!empty(\Drupal::config('static_server.settings')->get('static_server_files_extension'))) {
-    $files_extensions = \Drupal::config('static_server.settings')->get('static_server_files_extension');
-    $files_extensions = explode(' ', $files_extensions);
-  }
+  $is_admin = \Drupal::service('router.admin_context')->isAdminRoute();
+  $admin_disabled = FALSE;
 
-  // Serve only public files.
-  $schemes = array('public');
-  $scheme = file_uri_scheme($uri);
+  if (!empty(\Drupal::config('static_server.settings')->get('static_server_admin_disabled'))) {
+    $admin_disabled = \Drupal::config('static_server.settings')->get('static_server_admin_disabled');
+  }
 
-  // Only serve shipped files and public created files from the Static Server.
-  if (!$scheme || in_array($scheme, $schemes)) {
-    if (!$scheme) {
-      $path = $uri;
+  if (!$is_admin || !$admin_disabled) {
+    if (!empty(\Drupal::config('static_server.settings')->get('static_server_css_path'))) {
+      $css_path = \Drupal::config('static_server.settings')->get('static_server_css_path');
+    }
+    if (!empty(\Drupal::config('static_server.settings')->get('static_server_js_path'))) {
+      $js_path = \Drupal::config('static_server.settings')->get('static_server_js_path');
     }
-    else {
-      // Public created files.
-      $wrapper = \Drupal::service('stream_wrapper_manager')->getViaScheme($scheme);
-      $path = $wrapper->getDirectoryPath() . '/' . file_uri_target($uri);
+    if (!empty(\Drupal::config('static_server.settings')->get('static_server_files_path'))) {
+      $files_path = \Drupal::config('static_server.settings')->get('static_server_files_path');
     }
+    if (!empty(\Drupal::config('static_server.settings')->get('static_server_files_extension'))) {
+      $files_extensions = \Drupal::config('static_server.settings')->get('static_server_files_extension');
+    }
+    $files_extensions = explode(' ', $files_extensions);
 
-    // Clean up Windows paths.
-    $path = str_replace('\\', '/', $path);
+    // Serve only public files.
+    $schemes = array('public');
+    $scheme = file_uri_scheme($uri);
 
-    // Serve files with one of the files extensions from static servers.
-    $pathinfo = pathinfo($path);
-    if (isset($pathinfo['extension'])) {
-      if (in_array($pathinfo['extension'], $css_file_extensions)) {
-        $uri = $css_path . '/' . $path;
-      }
-      elseif (in_array($pathinfo['extension'], $js_file_extensions)) {
-        $uri = $js_path . '/' . $path;
-      }
-      elseif (in_array($pathinfo['extension'], $files_extensions)) {
-        $uri = $files_path . '/' . $path;
+    // Only serve shipped files and public created files from the Static Server.
+    if (!$scheme || in_array($scheme, $schemes)) {
+      if (!$scheme) {
+        $path = $uri;
       }
       else {
-        $uri = $base_url . '/' . $path;
+        // Public created files.
+        $wrapper = \Drupal::service('stream_wrapper_manager')->getViaScheme($scheme);
+        $path = $wrapper->getDirectoryPath() . '/' . file_uri_target($uri);
+      }
+
+      // Clean up Windows paths.
+      $path = str_replace('\\', '/', $path);
+
+      // Serve files with one of the files extensions from static servers.
+      $pathinfo = pathinfo($path);
+      if (isset($pathinfo['extension'])) {
+        if (in_array($pathinfo['extension'], $css_file_extensions)) {
+          $uri = $css_path . '/' . $path;
+        }
+        elseif (in_array($pathinfo['extension'], $js_file_extensions)) {
+          $uri = $js_path . '/' . $path;
+        }
+        elseif (in_array($pathinfo['extension'], $files_extensions)) {
+          $uri = $files_path . '/' . $path;
+        }
+        else {
+          $uri = $base_url . '/' . $path;
+        }
       }
     }
   }
