Re: [arch-dev-public] FluxBB update round two

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 10.08.2010 07:05, Dan McGee wrote:
>     Order deny,allow
>     Deny from all
>     Allow from 99.140.196.156
>     ErrorDocument 403 "<html><head><title>Down for
> maintenance</title></head><body><div align='center'><h1>The Arch Linux
> main site is down for maintenance.<br />Please try again
> later.</h1><img
> src='http://dev.archlinux.org/~dan/funny-pictures-cat-wonders-if-he-is-broken.jpg'
> /></div></body></html>"
> 
> -Dan

I suggest using the correct error code (503) which prevents bots from
indexing the error page:

RewriteEngine On
RewriteCond %{REQUEST_URI} !^/error/.*$
RewriteCond %{REMOTE_ADDR} !^127\.0\.0\.1$
Header always set Retry-After "3600"
RewriteRule .* - [R=503]
ErrorDocument 503 "<same as above>"

This only allows the access to /error/ (if not needed just remove the
line) or from the IP (multiple IPs -> multiple lines or matching regexps)


-- 
Florian Pritz -- {flo,bluewind}@server-speed.net

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux