Skip to content

Commit

Permalink
ban web.zone.ee websites
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Wilkinson committed May 18, 2009
1 parent e7412b1 commit f40fd96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/entries.rb
Expand Up @@ -77,7 +77,7 @@ def create
raise "No URL specified!" if uri.to_s.empty? raise "No URL specified!" if uri.to_s.empty?


# TODO add site blacklisting & IP blacklisting # 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 # TODO add IP blacklisting
banned = ['207.190.226.22', '24.63.62.169', '67.181.5.112', banned = ['207.190.226.22', '24.63.62.169', '67.181.5.112',
Expand Down

0 comments on commit f40fd96

Please sign in to comment.