Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Catalyst and Cloudflare

by Anonymous Monk
on Apr 25, 2016 at 09:19 UTC ( [id://1161425]=note: print w/replies, xml ) Need Help??


in reply to Catalyst and Cloudflare

I set up a web server using catalyst and put it behind cloudflare fore security reasons, is there any way in catalyst to prevent a direct access using the server's ip address (thus bypassing cloudflare)?

Its a cloudflare question; answer is probably no, check with cloudflare

I think one could deny by default and whitelist cloudflare's ip ranges but I would like to know if there is a way to do it using catalyst itself? Maybe a way to formulate a controller for this case.

Yes, you can do pretty much anything you want, easiest option is is use Plack/plackup to load your catalyst app with a simple sub that checks IPs

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-03-29 06:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found