lib/firewool/instance_methods.rb
# TODO: opinionated.  provide instructions on how to forget about this filter
# and redirect to their own thing.  but this should redirect to the 403.html in public
opinionated.  provide instructions on how to forget about this filter
and redirect to their own thing.  but this should redirect to the 403.html in public
opinionated . provide instructions on how to forget about this filter and redirect to their own thing . but this should redirect to the 403 . html in public
def ip_filter
      if !ip_allow?(request.remote_ip)
        if File.exists? "#{::Rails.root.to_s}/public/403.html"
          render :file => "#{::Rails.root.to_s}/public/403.html", :layout => false, :status => 403
        else
          render :text => "Public Access Denied.", :status => 403
        end
      end
    end
def ip_filter if ! ip_allow? ( request . remote_ip ) if File . exists? "#{::Rails.root.to_s}/public/403.html" render :file => "#{::Rails.root.to_s}/public/403.html" , :layout => false , :status => 403 else render :text => "Public Access Denied." , :status => 403 end end end
TODO: opinionated.
TODO : opinionated .
# if no allowed ranges match, then deny