Browse files

ban web.zone.ee websites

  • Loading branch information...
1 parent e7412b1 commit f40fd96731fd75280a1778987fa06268b0147340 @jamiew committed May 18, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/entries.rb
View
2 app/controllers/entries.rb
@@ -77,7 +77,7 @@ def create
raise "No URL specified!" if uri.to_s.empty?
# TODO add site blacklisting & IP blacklisting
- 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)/
+ 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)/
# TODO add IP blacklisting
banned = ['207.190.226.22', '24.63.62.169', '67.181.5.112',

0 comments on commit f40fd96

Please sign in to comment.