title: htaccess allow from subdomain
body: <p>I have restrict rules in htaccess</p>
  
  <pre><code>order deny,allow
  deny from all
  allow from 111.111.222.222
  </code></pre>
  
  <p>How could I make something like this?</p>
  
  <pre><code>order deny,allow
  deny from all
  allow from sub.domain.tld
  </code></pre>
  
  <p>My IP is changing frequently and I have domain name A DNS record for this IP as sub.domain.tld. This would save me much time when my IP changes because I don't need to change all htaccess files with the new one IP.</p>
  
  <p>I tried it but unfrotunatelly it is not working. Any workaround for this? Many thanks.</p>