Posted on: 04/13/07 07:35pm
By: jason559
I'm trying to deny any website linking in stories or comments. So, I have http:// and www. in my personal blacklist. But, it was recently brought to my attention that if someone writes a word like "aaaaawwww" it will deny the entire story/comment.
Does anyone know of a way I can make it only include the exact match, like "www." (with the period) and ignore the rest?
Re: Spam-x issue
Posted on: 04/13/07 07:44pm
By: casper
Why not use the
SNL-module[*1] for Spam-X to sort out posts with your pre-set allowed number of links?
You can also use
regular expressions[*2] (regex) in your blacklist.
Re: Spam-x issue
Posted on: 04/13/07 11:28pm
By: jmucchiello
Why not just remove the <A> tag from $_CONF['user_html'] in config.php?
Re: Spam-x issue
Posted on: 04/13/07 11:38pm
By: jason559
Quote by: jmucchielloWhy not just remove the <A> tag from $_CONF['user_html'] in config.php?
I removed all of the tags from there, unfortunately, typing just the text www.site.com automatically converts it to a valid URL link. Perhaps there is a way to turn that off?
Re: Spam-x issue
Posted on: 04/14/07 12:00am
By: jason559
Quote by: casperWhy not use the SNL-module[*1] for Spam-X to sort out posts with your pre-set allowed number of links?
You can also use regular expressions[*2] (regex) in your blacklist.
Thanks, was able to correct it via regex:
www\.
Re: Spam-x issue
Posted on: 04/14/07 01:25am
By: jmucchiello
Check your config.php
// disables autolinks if set to 1
$_CONF['disable_autolinks'] = 0; // 0 = autolinks enabled
Re: Spam-x issue
Posted on: 04/14/07 04:03am
By: jason559
Quote by: jmucchielloCheck your config.php
// disables autolinks if set to 1
$_CONF['disable_autolinks'] = 0; // 0 = autolinks enabled
I currently have mine set to "1", so I'm not sure why it would be creating links
:
Re: Spam-x issue
Posted on: 04/15/07 03:59am
By: Dirk
Quote by: jmucchiello// disables autolinks if set to 1
$_CONF['disable_autolinks'] = 0; // 0 = autolinks enabled
:rtfm:
About Autolinks And Autotags
This, of course, has nothing at all to do with automatically creating clickable links in text-only posts (in stories and comments). Which can't be switched off, btw.
bye, Dirk
Re: Spam-x issue
Posted on: 04/15/07 05:07am
By: jason559
I spoke too soon. As an example, this seems to trigger the blacklist:
awwww. (would have a period because it was at the end of a sentence)
I'm using the regex expression:
www\.
All of this regex stuff is completely foreign to me. I looked on a few sites for examples for what I'm trying to do, but I can't seem to find a solution. Can anyone suggest the expression I should be using? I'm trying to block website addresses from being inserted into story/comment submissions. But, not cause problems for people using a word with multiple "w"s in it.
Re: Spam-x issue
Posted on: 04/15/07 09:14am
By: jmucchiello
try /www\.\S/' which I believe only matches www. followed by a non-whitespace character. So "Awwww. That's cute" will not match but "Awwww.That's cute" will.