diff --git a/node_limit.install b/node_limit.install
index ce01853..6b35683 100644
--- a/node_limit.install
+++ b/node_limit.install
@@ -45,6 +45,11 @@ function node_limit_schema() {
         'not null' => TRUE,
         'default' => 0
       ),
+      'nid' => array(
+        'type' => 'int',
+        'description' => "Node",
+        'not null' => FALSE,
+      ),
     ),
     'primary key' => array('lid')
   );
@@ -77,6 +82,19 @@ function node_limit_update_7002() {
 }
 
 /**
+ * Implements hook_update_N().
+ * Add a field to store the page when the forbidden access.
+ */
+function node_limit_update_7003() {
+  $spec = array(
+    'type' => 'int',
+    'description' => "Node",
+    'not null' => FALSE,
+  );
+  db_add_field('node_limit', 'nid', $spec);
+}
+
+/**
  * Implements hook_disable().
  */
 function node_limit_disable() {
diff --git a/node_limit.module b/node_limit.module
index 4291c92..ab0194e 100644
--- a/node_limit.module
+++ b/node_limit.module
@@ -88,7 +88,11 @@ function node_limit_menu() {
     'access arguments' => array(NODE_LIMIT_PERM_ADMIN),
     'type' => MENU_CALLBACK
   );
-
+  $items['node_limit/node_autocomplete'] = array(
+    'page callback' => 'node_limit_node_autocomplete',
+    'access arguments' => array('access content'),
+    'type' => MENU_CALLBACK,
+  );
   return $items;
 }
 
@@ -154,10 +158,9 @@ function node_limit_access($type, $account = NULL) {
     $oldCallback  = variable_get('node_limit_' . $type . '_access_callback');
     $oldArguments = variable_get('node_limit_' . $type . '_access_arguments', array());
     $oldAccess = function_exists($oldCallback) ? call_user_func_array($oldCallback, $oldArguments) : TRUE;
-    
+
     $access[$account->uid][$type] = !_node_limit_violates_limit($node) && $oldAccess;
   }
-
   return $access[$account->uid][$type];
 }
 
@@ -225,7 +228,7 @@ function node_limit_node_validate($node, $form, &$form_state) {
  * @param $node
  *   The node to check.
  */
-function _node_limit_violates_limit(&$node) {
+function _node_limit_violates_limit(&$node, $form = FALSE) {
   if ($node->uid == 1 || user_access(NODE_LIMIT_PERM_OVERRIDE)) {
     return FALSE;
   }
@@ -238,6 +241,12 @@ function _node_limit_violates_limit(&$node) {
     $select = _node_limit_sql($limit['lid']);
     $count = $select->execute()->fetchField();
     if ($count >= $limit['nlimit']) {
+      if (!empty($limit['nid'])) {
+        if ($form) {
+          drupal_goto('node/' . $limit['nid']);
+        }
+        return FALSE;
+      }
       return TRUE;
     }
   }
@@ -245,6 +254,22 @@ function _node_limit_violates_limit(&$node) {
 }
 
 /**
+ * Implements hook_form_alter().
+ */
+function node_limit_form_alter($form_id, &$form) {
+  global $user;
+  $types = node_type_get_types();
+  foreach ($types as $key => $type) {
+    if ($form_id == $type->type . '_node_form') {
+      $node = new stdClass();
+      $node->uid = $user->uid;
+      $node->type = $type->type;
+      _node_limit_violates_limit($node, TRUE);
+    }
+  }
+}
+
+/**
  * Generates the sql statement to find the nodes that apply to a particular limit.
  * Modules that implement hook_node_limit_sql() should sprintf their arguments
  * into the returned array.
@@ -453,6 +478,7 @@ function node_limit_limit_form($form, &$form_state, $limit = FALSE) {
       'title' => '',
       'weight' => 0,
       'nlimit' => NODE_LIMIT_NO_LIMIT,
+      'nid' => '',
     );      
   }
 
@@ -480,6 +506,14 @@ function node_limit_limit_form($form, &$form_state, $limit = FALSE) {
     '#required' => TRUE,
     '#description' => t('The number of nodes for this limit.  Must be an integer greater than 0 or %nolimit for no limit', array('%nolimit' => NODE_LIMIT_NO_LIMIT))
   );
+  $form['info']['nid'] = array(
+    '#title' => t('Nid'),
+    '#type' => 'textfield',
+    '#default_value' => $limit['nid'],
+    '#size' => 10,
+    '#description' => t('Node if access is denied'),
+    '#autocomplete_path' => 'node_limit/node_autocomplete',
+  );
   $form['info']['weight'] = array(
     '#type' => 'hidden',
     '#value' => $limit['weight']
@@ -525,7 +559,6 @@ function node_limit_limit_form_validate($form_id, &$form_state) {
   if (trim($form_state['values']['info']['title']) == '') {
     form_set_error('info][title', t('Invalid Node Limit title'));
   }
-
   if (!empty($form_state['values']['node_limit_elements'])) {
     foreach ($form_state['values']['node_limit_elements'] as $module => $element) {
       if ($element['applies'] === 1) {
@@ -541,6 +574,21 @@ function node_limit_limit_form_validate($form_id, &$form_state) {
       }
     }
   }
+  if (!empty($form_state['values']['info']['nid'])) {
+    if (!is_numeric($form_state['values']['info']['nid'])) {
+      form_set_error('info][nid', t('Nid must be an integer'));
+    }
+    else {
+      $nid = db_select('node', 'n')
+        ->fields('n', array('nid'))
+        ->condition('nid', $form_state['values']['info']['nid'])
+        ->execute()
+        ->fetchField();
+      if (empty($nid)) {
+        form_set_error('info][nid', t('Nid incorrect'));
+      }
+    }
+  }
 }
 
 /**
@@ -555,11 +603,15 @@ function node_limit_limit_form_submit($form_id, &$form_state) {
   else {
     $lid = _node_limit_next_limit_id();
   }
+  if (empty($form_state['values']['info']['nid'])) {
+    $form_state['values']['info']['nid'] = NULL;
+  }
   $limit = array();
   $limit['lid'] = $lid;
   $limit['nlimit'] = intval($form_state['values']['info']['limit']);
   $limit['title'] = $form_state['values']['info']['title'];
   $limit['weight'] = $form_state['values']['info']['weight'];
+  $limit['nid'] = $form_state['values']['info']['nid'];
 
   if (!empty($form_state['values']['node_limit_elements'])) {
     foreach ($form_state['values']['node_limit_elements'] as $module => $element) {
@@ -688,13 +740,13 @@ function node_limit_delete($lids, $silent = FALSE) {
  */
 function node_limit_save($limit) {
   node_limit_delete($limit['lid'], TRUE);
-
   db_insert('node_limit')
     ->fields(array(
       'lid' => $limit['lid'],
       'nlimit' => $limit['nlimit'],
       'title' => $limit['title'],
-      'weight' => $limit['weight']
+      'weight' => $limit['weight'],
+      'nid' => $limit['nid'],
       ))
     ->execute();
   $modules = module_implements('node_limit_save');
@@ -704,3 +756,22 @@ function node_limit_save($limit) {
     module_invoke($module, 'node_limit_save', $limit['lid'], $applies, $element);
   }
 }
+
+/**
+ * Callback for node autocomplete
+ * @param $string
+ */
+function node_limit_node_autocomplete($string) {
+  $result = db_select('node', 'n')
+    ->fields('n', array('nid', 'title'))
+    ->condition('title', '%' . db_like($string) . '%', 'LIKE')
+    ->range(0, 10)
+    ->execute();
+
+  $matches = array();
+  foreach ($result as $row) {
+    $matches[$row->nid] = check_plain($row->title);
+  }
+
+  drupal_json_output($matches);
+}
