title: block domain from .htaccess
body: <p>i want to block some domain with this example script:</p>
  
  <p><strong>.htaccess</strong> file</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteCond %{HTTP_REFERER} ^http?://([^.]+\.)*google\.com [NC]
  RewriteRule .* - [F]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p><strong>index.php</strong> file</p>
  
  <pre><code>&lt;?php
  // set location
  $address = "Brooklyn+NY+USA";
  
  //set map api url
  $url = "http://maps.google.com/maps/api/geocode/json?address=$address";
  
  //call api
  $json = file_get_contents($url);
  $json = json_decode($json);
  $lat = $json-&gt;results[0]-&gt;geometry-&gt;location-&gt;lat;
  $lng = $json-&gt;results[0]-&gt;geometry-&gt;location-&gt;lng;
  echo "Latitude: " . $lat . ", Longitude: " . $lng;
  
  ?&gt;
  </code></pre>
  
  <p>result : Latitude: 40.6781784, Longitude: -73.9441579</p>
  
  <p>Q: how to block data from this domain <a href="http://maps.google.com/maps/api/geocode/json?address=" rel="nofollow noreferrer">http://maps.google.com/maps/api/geocode/json?address=</a> use .htaccess ?</p>
  
  <p>i mean if the domain was blocked result must blank. but i still can't to solve it..</p>