Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- i2l = Ip2location.new.open("./data/IP-COUNTRY.BIN")
- record = i2l.get_all(request.remote_ip)
- if record.country_short == "IL":
- redirect_to "https://threatmap.checkpoint.com/", :status => 301
- end
- if record.country_short == "HK":
- redirect_to "https://www.imperva.com/cyber-threat-attack-map/", :status => 301
- end
- if record.country_short == "IN":
- redirect_to "https://livethreatmap.radware.com/", :status => 301
- end
- if record.country_short == "BW":
- redirect_to "https://www.fireeye.com/cyber-map/threat-map.html", :status => 301
- end
- if record.country_short == "AU":
- redirect_to "https://threatmap.bitdefender.com", :status => 301
- end
- if record.country_short == "FR":
- redirect_to "https://attackmap.sonicwall.com/live-attack-map/", :status => 301
- end
- if record.country_short == "BS":
- redirect_to "https://www.digitalattackmap.com/", :status => 301
- end
- if record.country_short == "BR":
- redirect_to "https://map.httpcs.com/", :status => 301
- end
- if record.country_short == "IO":
- redirect_to "http://norsenet.com/", :status => 301
- end
- if record.country_short == "CA":
- redirect_to "https://map.lookradar.securitywizardry.comingglasscyber.com/", :status => 301
- end
- if record.country_short == "CN":
- redirect_to "https://geekflare.com/real-time-cyber-attacks/", :status => 301
- end
- if record.country_short == "IQ":
- redirect_to "https://threatbutt.com/map/", :status => 301
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement