Welcome to Geeklog, Anonymous Friday, March 29 2024 @ 03:15 am EDT

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?
 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.
 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?
 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?
 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\.
 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
 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 Confused:
 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
 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.
 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.
 Quote

All times are EDT. The time is now 03:15 am.

  • 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