Turn off Instiki spam/flood protection
February 10, 2008 11:18 AM Subscribe
Is there any way to stop spam protection on Instiki?
I run a local version of Instiki (0.12) on my Mac (OSX 10.4.11) which I keep notes on. This isn't an as-you-go operation - I'll take notes by hand, and then at the end of the day or week sit down and try and type them all in.
Problem is, Instiki's flood/spam protection is stopping me. Is there any way of turning it off? I'm more than happy to dive in using Terminal. I've Googled around, but there doesn't seem to be a ready-made solution yet.
I run a local version of Instiki (0.12) on my Mac (OSX 10.4.11) which I keep notes on. This isn't an as-you-go operation - I'll take notes by hand, and then at the end of the day or week sit down and try and type them all in.
Problem is, Instiki's flood/spam protection is stopping me. Is there any way of turning it off? I'm more than happy to dive in using Terminal. I've Googled around, but there doesn't seem to be a ready-made solution yet.
Response by poster: My version had slightly more than that listed.
And commenting it out completely broke Instiki. Any ideas?
posted by djgh at 5:01 PM on February 11, 2008
class ApplicationController <>
# require 'dnsbl_check'
protect_forms_from_spam
before_filter :dnsbl_check, :connect_to_model, :check_authorization, :setup_url_generator, :set_content_type_header, :set_robots_metatag
after_filter :remember_location, :teardown_url_generator>
And commenting it out completely broke Instiki. Any ideas?
posted by djgh at 5:01 PM on February 11, 2008
Best answer: Yes, I just included enough context to draw your attention to "protect_forms_from_spam". Comment that line out and it should work, don't remove anything else.
You may also delete ":dnsbl_check," from the before_filter line to remove DNS blacklist checks; saves a few pointless DNS lookups.
posted by Freaky at 7:28 PM on February 11, 2008
You may also delete ":dnsbl_check," from the before_filter line to remove DNS blacklist checks; saves a few pointless DNS lookups.
posted by Freaky at 7:28 PM on February 11, 2008
Response by poster: That plus deleting all lines in spam_patterns.txt did the trick. Thanks!
posted by djgh at 8:10 AM on February 12, 2008
posted by djgh at 8:10 AM on February 12, 2008
This thread is closed to new comments.
And indeed, app/controllers/application.rb: Comment that out, maybe restart if it runs in production mode, and you're done.
posted by Freaky at 4:58 PM on February 10, 2008