Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

ban web.zone.ee websites

  • Loading branch information...
commit f40fd96731fd75280a1778987fa06268b0147340 1 parent e7412b1
Jamie Wilkinson authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  app/controllers/entries.rb
2  app/controllers/entries.rb
@@ -77,7 +77,7 @@ def create
77 77 raise "No URL specified!" if uri.to_s.empty?
78 78
79 79 # TODO add site blacklisting & IP blacklisting
80   - raise "Your URL <em>#{url}</em> has been blacklisted. <br /><br /><img src=\"/images/wtf-cat.jpg\" />." if uri.to_s =~ /(rickrolldb\.com|rickblock\.com|nimp\.org|zoy\.org|viagra|cialis|partyhard\.biz|encyclopediadramatica\.com|xeloda|prozac|casino|celexa|gambling|mortgage|xanax|zyban|habbo)/
  80 + raise "Your URL <em>#{url}</em> has been blacklisted. <br /><br /><img src=\"/images/wtf-cat.jpg\" />." if uri.to_s =~ /(rickrolldb\.com|rickblock\.com|nimp\.org|zoy\.org|viagra|cialis|partyhard\.biz|encyclopediadramatica\.com|xeloda|prozac|casino|celexa|gambling|mortgage|xanax|zyban|habbo|web\.zone\.ee)/
81 81
82 82 # TODO add IP blacklisting
83 83 banned = ['207.190.226.22', '24.63.62.169', '67.181.5.112',

0 comments on commit f40fd96

Please sign in to comment.
Something went wrong with that request. Please try again.