Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 11:57 pm EST
Geeklog Forums
Spam-x issue
Status: offline
jason559
Forum User
Regular Poster
Registered: 03/31/03
Posts: 83
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?
Does anyone know of a way I can make it only include the exact match, like "www." (with the period) and ignore the rest?
8
12
Quote
Status: offline
casper
Forum User
Full Member
Registered: 02/11/04
Posts: 142
Location:Skien, Norway
Why not use the SNL-module for Spam-X to sort out posts with your pre-set allowed number of links?
You can also use regular expressions (regex) in your blacklist.
You can also use regular expressions (regex) in your blacklist.
18
12
Quote
Status: offline
jmucchiello
Forum User
Full Member
Registered: 08/29/05
Posts: 985
Why not just remove the <A> tag from $_CONF['user_html'] in config.php?
16
15
Quote
Status: offline
jason559
Forum User
Regular Poster
Registered: 03/31/03
Posts: 83
Quote by: jmucchiello
Why 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?
9
7
Quote
Status: offline
jason559
Forum User
Regular Poster
Registered: 03/31/03
Posts: 83
Quote by: casper
Why not use the SNL-module for Spam-X to sort out posts with your pre-set allowed number of links?
You can also use regular expressions (regex) in your blacklist.
Thanks, was able to correct it via regex:
www\.
8
15
Quote
Status: offline
jmucchiello
Forum User
Full Member
Registered: 08/29/05
Posts: 985
Check your config.php
// disables autolinks if set to 1
$_CONF['disable_autolinks'] = 0; // 0 = autolinks enabled
// disables autolinks if set to 1
$_CONF['disable_autolinks'] = 0; // 0 = autolinks enabled
14
9
Quote
Status: offline
jason559
Forum User
Regular Poster
Registered: 03/31/03
Posts: 83
Quote by: jmucchiello
Check 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 :
12
14
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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
13
10
Quote
Status: offline
jason559
Forum User
Regular Poster
Registered: 03/31/03
Posts: 83
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.
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.
11
9
Quote
Status: offline
jmucchiello
Forum User
Full Member
Registered: 08/29/05
Posts: 985
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.
10
11
Quote
All times are EST. The time is now 11:57 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content