Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Redirecting anonymous requests to offline copy on other servers

by LanX (Saint)
on Mar 31, 2026 at 09:24 UTC ( [id://11167490]=perlmeditation: print w/replies, xml ) Need Help??

Hi

I've split the following from my reply in Re^2: On improving Perlmonks site availability to avoid to much thread-drift, but would be interested to discuss this, at least in theory.


What might be possible is to host a static mirror° at another site like github or gitlab pages (10 GiB content free) (which both must already have good bot protection and CDNs) and setup Apache config/.htaccess to redirect all visitors without logged-in cookies there.

Of course except when aiming for the login page.

Alas Anomonks would loose access to dynamic content like searching and posting then ... (hmm ... well at least at the beginning)

First test would be to see if a temporary block of anonymous requests on Apache level brought the desired relieve for logged-in users.

Worst case is the web server gets already exhausted with redirecting to an external "maintenance page", even before PM's Everything engine gets involved.

My hope is that the bots quickly realize there is another target IP.

Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery

°) NB: the named links in the static mirror would need to be rewritten to the targeted node-id, or we would need to store many pages twice. (Update: In hindsight replacing named nodes with symlinks should be easier and more robust)

  • Comment on Redirecting anonymous requests to offline copy on other servers

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://11167490]
Approved by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2026-04-16 01:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.