diff --git a/geohide.info b/geohide.info
index 454791c..e4e3c91 100644
--- a/geohide.info
+++ b/geohide.info
@@ -1,3 +1,5 @@
 name = Geolocalize and Hide
 description = Geolocalize a visitor and hide any given field depending on node's title
 core = 7.x 
+configure = admin/config/content/current_posts
+
diff --git a/geohide.module b/geohide.module
index d679037..603f099 100644
--- a/geohide.module
+++ b/geohide.module
@@ -6,9 +6,9 @@ include 'geolocalize/get_ip.php';
  *
  * Displays help and module information.
  *
- * @param path 
+ * @param path
  *   Which path of the site we're using to display help
- * @param arg 
+ * @param arg
  *   Array that holds the current path as returned from arg() function
  */
 function geohide_help($path, $arg) {
@@ -17,8 +17,76 @@ function geohide_help($path, $arg) {
       return '' . t("Geolocalize a visitor and hide any given field depending on node's title") . '';
       break;
   }
-} 
+}
+
+
+/**
+ * Implements hook_menu().
+ */
+function geohide_menu() {
+  $items = array();
+
+  $items['admin/config/content/geohide'] = array(
+    'title' => 'Geohide',
+    'description' => 'Configuration for Geohide module',
+    'page callback' => 'drupal_get_form',
+    'page arguments' => array('geohide_form'),
+    'access arguments' => array('access administration pages'),
+    'type' => MENU_NORMAL_ITEM,
+  );
+
+  return $items;
+}
+
+
+/**
+ * Page callback: Geohide settings
+ *
+ * @see geohide_menu()
+ */
+
+
+function geohide_form($form, &$form_state) {
+  $form['city'] = array(
+    '#type' => 'textfield',
+    '#title' => t('City to be hide'),
+    '#default_value' => variable_get('city', 'Sevilla'),
+    '#size' => 10,
+    '#maxlength' => 30,
+    '#description' => t('The City you want to filter a determinated info'),
+    '#required' => TRUE,
+  );
 
+  $form['nodetitle'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Node to be hide'),
+    '#default_value' => variable_get('nodetitle', 'pdp2'),
+    '#size' => 10,
+    '#maxlength' => 100,
+    '#description' => t('Node title you want to filter a determinated info'),
+    '#required' => TRUE,
+  );
+
+
+  return system_settings_form($form);
+}
+
+
+function geohide_submit($form, $form_state){
+	$values = array(
+		'city' => $form_state['values']['city'],
+		'nodetitle' => $form_state['values']['nodetitle'],
+	);
+
+	$insert = db_insert('geohide')
+		-> fields(array(
+			'city' => $values['city'],
+			'nodetitle' => $values['nodetitle'],
+		))
+		->execute();
+
+	drupal_set_message(t('Settings have been saved'));
+}
 
 
 /**
@@ -28,30 +96,29 @@ function geohide_help($path, $arg) {
  *
  * In this case, it was added a geographic filter to avoid using ip2location or geoplugin webservice to filter the showing of field phonenumber
  */
- 
+
 function geohide_node_view($node, $view_mode) {
 	$ip = getIP();
-	
+
 	// Uncomment these lines if you want to use ip2location xml webservice
 	// $xml = simplexml_load_file("http://api.ip2location.com/?ip={$ip}&key=demo&package=WS3&format=xml");
 	// $cityvisitor = $xml->city_name;
-	
+
 	// Uncomment these lines if you want to use geoplugin xml webservice
-	//$xml = simplexml_load_file("http://www.geoplugin.net/xml.gp?ip={$ip}");
-	//$cityvisitor = $xml->geoplugin_city;
-	
+	$xml = simplexml_load_file("http://www.geoplugin.net/xml.gp?ip={$ip}");
+	$cityvisitor = $xml->geoplugin_city;
+
 	// Uncomment these lines if you want to use ip2location json webservice
-	$json = file_get_contents("http://api.ip2location.com/?ip={$ip}&key=demo&package=WS3&format=json");
-	$array = json_decode($json, true);
-	$cityvisitor = $array['city_name'];
-	
-	
-    if ($node->title=="nodetitle" && $cityvisitor=='cityvisitor'){
+	//$json = file_get_contents("http://api.ip2location.com/?ip={$ip}&key=demo&package=WS3&format=json");
+	//$extraction = json_decode($json, true);
+	//$cityvisitor = $extraction['city_name'];
+
+
+    if ($node->title==variable_get('nodetitle') && variable_get('city')==$cityvisitor){
         if ($view_mode == 'full'){
-            $node->content['field_phonenumber']['#access'] = FALSE;     
+            $node->content['field_image']['#access'] = FALSE;
            }
          return $node;
-    }    
+    }
 }
 
-
diff --git a/geolocalize/get_ip.php b/geolocalize/get_ip.php
index 965ceae..fd618b0 100644
--- a/geolocalize/get_ip.php
+++ b/geolocalize/get_ip.php
@@ -1,15 +1,13 @@
-<?
-
-function getIP() {
-    if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
-        $ip = $_SERVER['HTTP_CLIENT_IP'];
-    } elseif (! empty($_SERVER['HTTP_X_FORWARDED_FOR'])) 
-    {
-        $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
-    } else {
-        $ip = $_SERVER['REMOTE_ADDR'];
-    }
-    return $ip;
-}
-
-?>
+<?
+
+function getIP() {
+    if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
+        $ip = $_SERVER['HTTP_CLIENT_IP'];
+    } elseif (! empty($_SERVER['HTTP_X_FORWARDED_FOR']))
+    {
+        $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
+    } else {
+        $ip = $_SERVER['REMOTE_ADDR'];
+    }
+    return $ip;
+}
