title: AjaxController yii
body: <p>Im creating a dependent dropdown &amp; everything works fine for me.</p>
  
  <pre><code>CHtml::dropDownList('country_id','', array(1=&gt;'USA',2=&gt;'France',3=&gt;'Japan'),
  array(
  'ajax' =&gt; array(
  'type'=&gt;'POST', //request type
  'url'=&gt;CController::createUrl('ajax/subcategories'),
  'update'=&gt;'#city_id', //selector to update
  )));
  </code></pre>
  
  <p>AjaxController.php</p>
  
  <pre><code>class AjaxController extends Controller
  {
  ...
  }
  </code></pre>
  
  <p>Now I want to hide the url "mydomain.com/ajax/subcategories". If anyone tries to directly access this url it'll show a 404 error page. Is this possible?</p>