Ok, then you need to patch the Alchemy::Admin::BaseController
Caution, Pseudo Code ;)
# config/initializers/secure_alchemy_backend.rb
Alchemy::Admin::BaseController.class_eval do
before_action {
if request.ip != '1.2.3.4'
return && redirect_to(root_url, message: 'You are not allowed to access this url')
end
}
end
Maybe you need `request.remote_ip`, don't know.
best
t
> --
> You received this message because you are subscribed to the Google Groups "Alchemy CMS" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
alchemy-cms...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.