Need to block am IP address from your server? Here's an IPTables command:
/sbin/iptables -I INPUT -s w.x.y.z -j DROP
where w.x.y.z is the IP address to be blocked.
Here's a way to block and address with just the route command:
/sbin/route add -host w.x.y.z reject
Create a file at /etc/httpd/conf.d/no-etags.conf with the following:
Header unset ETag
FileETag None
Then of course restart Apache.
Here's a discussion on why you may want to turn ETags off:
Here's a good rule set for forcing use of a preferred url:
RewriteCond %{HTTP_HOST} !^desired\.domain\.name(:.*)?$ [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^/(.*) http://desired.domain.name/$1 [L,R=301]
This version of the canonical rewrite expands on the original found here:
http://httpd.apache.org/docs/2.2/rewrite/rewrite_guide.html#canonicalhost
by adding:
as suggested here:
and by using a 301 redirect as recommended by Google here:
http://www.google.com/support/webmasters/bin/answer.py?answer=44231&hl=en