2014-08-28から1日間の記事一覧

中国フィルターを作った

自社の問い合わせに中国からスパムが来る。 先月辺りからRailsアプリに require 'ipaddr' class ApplicationController < ActionController::Base protect_from_forgery before_filter :china_filter private def china_filter begin if IPAddr.new("175.42.…