View Full Version : Miscellaneous Hacks - Stop Spam Links 1.2 Gold
SkyCatcher
12-25-2006, 10:00 PM
Stop Spam Links 1.2 Gold
As of 3.8 this mod seems to have lost some/all of it's functionality depending on your vb settings. If anyone wishes to build on this mod, please feel free to as I do not have the time anymore.
What does this hack do?
This hack will replace a users entire post with a predefined message that you can edit in the adminCP should the user's post contain a TLD such as .de .com etc. This will only affect people in usergroups of your choice. By default only usergroup 1 is selected (Meaning Guests).
If you enter a usergroup ID, those user's will never be able to post links as long as they are a member of that group.
If the user's usergroup ID is not entered, then you can use a minimum postcount value which all users need to meet in order to post links.
----------------------------
Example: You enter usergroupID 2 (registered members). All registered members will not be able to post links.
You enter 5 for the postcount. Registered members will not be able to post links. Everyone else will need 5 posts before they can post links.
-----------------------------
Example2: You enter 1 for usergroupID (guests). No guest will be able to post links.
You enter 5 for the postcount. Everyone, except for guests, will need 5 posts before they can post links. Guests will never be able to.
-----------------------------
Installation Stats:
1 Product
4 PluginsInstallation Instructions
Import the Product file via the AdminCP
Go into Vbulletin Settings > Stop Spam Links
Suit to your needsInstall Time: 1 min
If you like this hack, please click INSTALL ----->>
UPGRADE INSTRUCTIONS
Simply go into the AdminCP > Manage Products > Find Stop Spam Links > Remove
Then reinstall the new product.
MAKE SURE TO COPY YOUR PERSONAL MESSAGE, USERGROUP ID's, AND DOMAIN ENDINGS YOU'VE ENTERED TO NOTEPAD SO YOU CAN COPY/PASTE THEM BACK IN AFTER THE UPGRADE. OTHERWISE YOU WILL HAVE THE DEFAULT VALUES AGAIN.
Updates:
1.2 Added Restrictions for Editing posts, PM's, and Quotes1.1 Added the use of Postcount
1.0 Initial Stable Release
Attached are 3.6 versions in English and German.
Special Thanks go out to extremeTim.
Sexified Ninja
12-26-2006, 12:51 AM
maybe if it could block specific links....
SkyCatcher
12-26-2006, 12:54 AM
maybe if it could block specific links....
You can do that in the AdminCP by using the word filter.
This is designed to stop people from registering, and spamming 20 something porn links.
There are other spam filters out there that won't allow posting of urls, etc which I'm also using with this hack.
The problem is that someone could just post
linktounwantedsite.com
and your vb wouldn't pick it up because it's not a url, but the users would still have to read all those links.
I have a minimum postcount of 5 before people can post links on my board and this illiminates any users from seeing unwanted material. :)
Smoothie
12-26-2006, 01:44 AM
Correct me if I'm wrong but, the problem with this is it's based on usergroups and not post counts. All of my registered members are allowed to post links. Spammers usually register and thus become part of that usergroup and they usually make like 1-5 posts w/links and then leave. Disallowing that group to post links wouldn't work for most sites.
It would be better to base this off of post counts.
SkyCatcher
12-26-2006, 01:58 AM
Correct me if I'm wrong but, the problem with this is it's based on usergroups and not post counts. All of my registered members are allowed to post links. Spammers usually register and thus become part of that usergroup and they usually make like 1-5 posts w/links and then leave. Disallowing that group to post links wouldn't work for most sites.
It would be better to base this off of post counts.
I can add that feature when I get back tomorrow if you like.
I've got 2 usergroups for main members.
1 is registered users (anyone with less than 5)
and as soon as they have 5 posts they automatically get promoted to full access via the promotion feature.
Smoothie
12-26-2006, 03:08 AM
I can add that feature when I get back tomorrow if you like.
I've got 2 usergroups for main members.
1 is registered users (anyone with less than 5)
and as soon as they have 5 posts they automatically get promoted to full access via the promotion feature.
Based on user post count would work for me. Or maybe have an option for both. Does this prevent both links being posted such as this: www.spam.com or this: spam.com? Thanks.
taydu
12-26-2006, 04:18 AM
greate mod, can you create a white list of sites what will not activate the block. One question would this mod catch the post if user use this format for the links?
w w w . y a h o o . c o m
w w w DOT Y A H O O d o t n e t
SkyCatcher
12-26-2006, 08:47 AM
greate mod, can you create a white list of sites what will not activate the block. One question would this mod catch the post if user use this format for the links?
w w w . y a h o o . c o m
w w w DOT Y A H O O d o t n e t
Yes you can set that when entering TLD's.
You can combine such as:
.de,.com,. d e,. c o m
Which will look for:
anything.de
anything. d e
anything.com
anything. c o m
All values are seperated by a , which means it will look for anything you enter after the ,
Such as entering:
.de, .com
Which will do this:
mylinki.de = match for spam
mylinki.com = no match (no space before the .)
mylinki. com = match for spam
Smoothie
12-26-2006, 12:48 PM
So, I see we now can disallow links via post count as well? BTW, what's a TLD?
SkyCatcher
12-26-2006, 03:50 PM
So, I see we now can disallow links via post count as well? BTW, what's a TLD?
Yep.
A TDL is a Top Level Domain such as .com .org etc.
Smoothie
12-30-2006, 05:59 AM
This isn't working correctly. Here's what I've got. I imported the product. I set it to a minimum post count of 15, usergroup field is empty and the spam message is configured.
I added a test account, made a new thread, and the spam filter kicked in. It was a url using BB code.
I then made a reply, added something like apple.com, no BB code, it showed the link. I added a 2nd reply with getmorefreestuff.com, no BB code, it showed the link. WTF?
Smoothie
12-30-2006, 06:08 AM
Looking at the hook location, apparently this only works when the spammer starts a new thread. replying to exisitng threads does not trigger the spam message.
BTW, how does this affect RSS feeds on the forums?
Smoothie
12-30-2006, 06:17 AM
What would be ideal is to stop spam links 1.2. :) On new thread, new reply, QR, quote or edit.
SkyCatcher
12-30-2006, 02:07 PM
What would be ideal is to stop spam links 1.2. :) On new thread, new reply, QR, quote or edit.
Yeah, it's only designed for new threads. For those people who register just to spam their links, or for bots who somehow manage to get around other spam protection.
I'll tinker with the reply quote edit, etc and see what I can come up with :)
Smoothie
12-30-2006, 03:11 PM
Here's what I'm thinking. Forget about the bots for a second, because my site gets real a-hole spammers. If a spammer hits the site and posts a new thread, the message he will see. If it were me, I'd hit reply to the same thread. The reason for this would be the thread already exists.
Worst case scenerio, it would be ideal to code this to act when replying to an existing thread. Whether it be QR, or full reply (not sure if there is a hook difference in the 2)
SkyCatcher
12-31-2006, 12:24 PM
(v1.2)Ok, now it checks:
When the user creates a new thread
When the user edits a post (quick & advanced)
When the user quotes or replies to a thread
When the user Creates or Replies to a PM
When the user Previews a post
Smoothie
12-31-2006, 01:57 PM
Installing the upgrade now. :)
Smoothie
12-31-2006, 02:04 PM
Is there a reason why the upgrade needs to be done by uninstalling vs. overwriting?
SkyCatcher
12-31-2006, 02:06 PM
No, I just like to recommend clean installs to illiminate any flukes :)
Smoothie
12-31-2006, 02:10 PM
ah! OK.
Smoothie
12-31-2006, 02:18 PM
Happy to report it seems to be working like a champ! Will test some more, but it's looking good. Simple but very effective.
Smoothie
12-31-2006, 02:19 PM
BTW, I did the upgrade by overwriting instead of deleting and reinstalling and it worked just fine.
Smoothie
12-31-2006, 02:44 PM
I forgot to ask. Are there any conflicts with this plugin and the RSS feed manager? In other words, will the RSS feeds be able to post links?
SkyCatcher
12-31-2006, 02:59 PM
I forgot to ask. Are there any conflicts with this plugin and the RSS feed manager? In other words, will the RSS feeds be able to post links?
I'm not sure. I've never used RSS links on my forum ><
the RSS links are posted by a user right? So as long as that user in not in the list of usergoupID's not able to post links or has more than the minimum post count it should be ok.
Smoothie
12-31-2006, 03:02 PM
I'm not sure. I've never used RSS links on my forum ><
the RSS links are posted by a user right? So as long as that user in not in the list of usergoupID's not able to post links or has more than the minimum post count it should be ok.Yes, RSS feeds are set to post as little ol' me. And I'm not blocked from posting links. :) Just thought I'd ask.
hendri
01-01-2007, 12:48 AM
installed !! thanks !! will try if it is works.. a lot of spammers nowdays..
Smoothie
01-01-2007, 01:46 AM
If this helps, this is what I have so far;
.biz,.us,.de,.com,.uk,.to,.info,.br,.net,.ru,.org, .tv,.ws,.fm,.eu,.cc,. c o m,. n e t,. o r g,. d e,. i n f o,. r u,. b i z,. u s,. u k,. t v,. w s,. f m,. c c,. e u
Great plugin. Will install right away. Its simple but looks good. Have seen other similar hacks earlier but this seems better.
Two questions, though:
Why does your description only mention TLD? I glanced over the code and it uses strpos in the whole message to ascertain if the message should be blocked or not. Doesn't that mean we can use any text - word or phrase - to trigger the spam check?
Also, I found your if statement a bit weird. If I understood it correctly, it says:
if the post doesnt contain any offending stuff
then
original post = original post
else
original post = special predefined message
isnt it simpler to write:
if the post contains any offending stuff
then
original post = special predefined message
SkyCatcher
01-08-2007, 12:03 PM
Great plugin. Will install right away. Its simple but looks good. Have seen other similar hacks earlier but this seems better.
Two questions, though:
Why does your description only mention TLD? I glanced over the code and it uses strpos in the whole message to ascertain if the message should be blocked or not. Doesn't that mean we can use any text - word or phrase - to trigger the spam check?
Also, I found your if statement a bit weird. If I understood it correctly, it says:
if the post doesnt contain any offending stuff
then
original post = original post
else
original post = special predefined message
isnt it simpler to write:
if the post contains any offending stuff
then
original post = special predefined message
Yeah, you're right on the ball. It checks for instances of anything you enter between the , , 's so you could enter .de,skycatcher,.com and it would considder the word skycatcher as spam if it finds an instance of that in the post, but it was intended to stop constant attempts to display links etc, so you can use it as you see fit, but that's on you :)
Hey! I like my logic :D
solokron
01-08-2007, 12:17 PM
This looks great! We'll see how it works!
Hey! I like my logicI would not say i dislike it, but I thought it was unusual, so I commented.
Installed and works good so far.
There are many hacks which do this kind of thing. I liked this one for 3 reasons:
1. it checks pm / new thread / new post / edit post
2. it doesnt put post in moderation queue which confuses the poster and increases work for mods
3. it is very very simple so there is very little chance of it clashing with other stuff
SkyCatcher
01-09-2007, 10:32 PM
I would not say i dislike it, but I thought it was unusual, so I commented.
Installed and works good so far.
There are many hacks which do this kind of thing. I liked this one for 3 reasons:
1. it checks pm / new thread / new post / edit post
2. it doesnt put post in moderation queue which confuses the poster and increases work for mods
3. it is very very simple so there is very little chance of it clashing with other stuff
Glad you like it! Nothing is better than reading positive comments :)
Smoothie
01-10-2007, 12:55 AM
Not one spam link since this has been installed. Like I mentioned, simple, yet quite effective
TROLL
01-11-2007, 04:13 PM
hey i just found this and i think it will be great for me.... one other idea to help fight off spammers, which i have had a lot of lately...
would it be possible to send a PM notification to a preset admin/mod or multiple admin/mods when a 'spam' link is detected so they can review the situtaion right away and either say 'sorry noob you're too new to post links' or see that it really was malicious and delete or lock the thread?
thanks....
girlz_starlight
01-11-2007, 08:01 PM
This is great!! Thank you so much. The image verification is broken on our domain and I got so sick of going in and clearing up spam from bots!!!
Smoothie
01-11-2007, 11:41 PM
hey i just found this and i think it will be great for me.... one other idea to help fight off spammers, which i have had a lot of lately...
would it be possible to send a PM notification to a preset admin/mod or multiple admin/mods when a 'spam' link is detected so they can review the situtaion right away and either say 'sorry noob you're too new to post links' or see that it really was malicious and delete or lock the thread?
thanks....Nice name.
solokron
01-12-2007, 12:31 AM
lol, self-promotion maybe? :)
Nice name.
SkyCatcher
01-12-2007, 04:28 PM
hey i just found this and i think it will be great for me.... one other idea to help fight off spammers, which i have had a lot of lately...
would it be possible to send a PM notification to a preset admin/mod or multiple admin/mods when a 'spam' link is detected so they can review the situtaion right away and either say 'sorry noob you're too new to post links' or see that it really was malicious and delete or lock the thread?
thanks....
Guess I should feel honored that this is your first post lol.
Not much freetime lately but sending a PM to mods about the thread isn't a bad idea. Will keep it in mind for the future, thanks.
Smoothie
01-12-2007, 11:47 PM
To be honest, I like the mod just the way it is, nice and simple. I can find spam posts that have effectively been washed clean by this mod by clicking "get new" on my forum. :)
sam anders
01-24-2007, 07:10 PM
when i install this product i receive the following error:
Warning: strpos(): Empty delimiter. in /includes/class_dm_user.php(2385) : eval()'d code on line 11
at the top above my header and then in a vb error box like a postbit placement:
Unable to add cookies, header already sent.
File: /var/www/vhosts/mydomain.com/httpdocs/forums/includes/class_core.php
Line: 3036
when ever a new member trys to create a new account, i have disabled the product and then create a new user account and no issues
any suggestions what could be causing the issue?
solokron
01-24-2007, 07:33 PM
header already sent typically represents a carriage or space before the <?php entry.
when i install this product i receive the following error:
Warning: strpos(): Empty delimiter. in /includes/class_dm_user.php(2385) : eval()'d code on line 11
at the top above my header and then in a vb error box like a postbit placement:
Unable to add cookies, header already sent.
File: /var/www/vhosts/mydomain.com/httpdocs/forums/includes/class_core.php
Line: 3036
when ever a new member trys to create a new account, i have disabled the product and then create a new user account and no issues
any suggestions what could be causing the issue?
sam anders
01-24-2007, 07:37 PM
on which file would this be? header.php ?
only reason is that when this hack is not installed the site works all ok its only when the hack is installed, and i would of thought that if the header file had the gap that you mentioned then i would be getting the error all the time? or does this hack change coding?
sorry still a newbie to the forums
solokron
01-24-2007, 08:19 PM
What occurs when you save your templates and then revert back to the originals with this hack?
on which file would this be? header.php ?
only reason is that when this hack is not installed the site works all ok its only when the hack is installed, and i would of thought that if the header file had the gap that you mentioned then i would be getting the error all the time? or does this hack change coding?
sorry still a newbie to the forums
sam anders
01-24-2007, 08:26 PM
sorry what do you mean by saving my templates? i am new :(
all i have done is installed the product, then it did not work so i disabled it via the option in the product manager and created the a new account and all working all ok, reenabled the product and then the error comes back when a new user account is created
SkyCatcher
01-25-2007, 08:12 AM
Just a thought, but try uninstalling and then installing this attached product.
Maybe another hack is using the same hook and they're conflicting so I changed one of the variables.
Give it a try and let me know.
sam anders
01-25-2007, 08:23 AM
thats worked all ok, created a new users reg and no error message displayed :-)
thank you ever so much!!!
what hook did you change? i will have a look and see if i can work out what other plugin was using the same hook
SkyCatcher
01-25-2007, 08:25 AM
thats worked all ok, created a new users reg and no error message displayed :-)
thank you ever so much!!!
what hook did you change? i will have a look and see if i can work out what other plugin was using the same hook
Cool, glad that worked. I didn't change the hook, just a variable... I used $value as one of the variables, although I didn't deem it a big deal. Changed that to something else to prevent that conflict :o
sam anders
01-26-2007, 08:10 AM
ok, well thank you for making the change its a great hack :)
kawzaki
01-30-2007, 03:38 PM
(v1.2)Ok, now it checks:
When the user creates a new thread
When the user edits a post (quick & advanced)
When the user quotes or replies to a thread
When the user Creates or Replies to a PM
When the user Previews a post
the most irritating part for me is when spammers register to spam the members using PMs, and this modification is going to solve my problem.
I'll try it, and give you a GO (installed) once tested and found working:)
Thank you for the efforts.
kawzaki
01-31-2007, 12:07 AM
Hey, it's working nice..
i just thought there should be an option to change the whole message, or just replace the URL entered with a ***** instead of taking the whole message out.
A member ( trusted one ) just had his post edited, he only used SMILIES from the images listed in the forum. I asked for the post before being edited so i can study where possible it was recognized a URL.
thanks again :)
kawzaki
01-31-2007, 07:11 AM
hello
I was interested in filtering links in PMs. so i modified the code (deleted the rest and kept the pm section) and replaced the search criteria to this:
i just thought u might make use of it:
<phpcode><![CDATA[$spamgroups = explode(',', $vbulletin->options['no_pm_links_usergroups']);
if (is_member_of($vbulletin->userinfo, $spamgroups) || $vbulletin->userinfo['posts'] < $vbulletin->options['no_pm_links_postcount'])
{
$re = "/(www\.)?(\w*[^\.])(\.[a-z]{2,3})/";
$bState = preg_match_all( $re , $vbulletin->GPC['message'], $m );
if ( $bState ) {
foreach( $m[0] as $v ){
$vbulletin->GPC['message'] = ereg_replace( $v, $vbulletin->options['no_pm_links_message'], $vbulletin->GPC['message']);
}
}
}]]></phpcode>
the original post will be updated ( links replacements ) if found matching :
domain.com
or
any other format (e.g, http://www.domain.com ) that includes the above link as part of it. Indeed, it will capture (.ae, .ca, and all country specific domains ).
The next step,
is to allow using the forum URL in posts (or PMs).
( u know members usually tell each other about their posts)
Sorry for my 3-in-a-row posts.
Cheers
SkyCatcher
01-31-2007, 11:21 AM
hello
I was interested in filtering links in PMs. so i modified the code (deleted the rest and kept the pm section) and replaced the search criteria to this:
i just thought u might make use of it:
<phpcode><![CDATA[$spamgroups = explode(',', $vbulletin->options['no_pm_links_usergroups']);
if (is_member_of($vbulletin->userinfo, $spamgroups) || $vbulletin->userinfo['posts'] < $vbulletin->options['no_pm_links_postcount'])
{
$re = "/(www\.)?(\w*[^\.])(\.[a-z]{2,3})/";
$bState = preg_match_all( $re , $vbulletin->GPC['message'], $m );
if ( $bState ) {
foreach( $m[0] as $v ){
$vbulletin->GPC['message'] = ereg_replace( $v, $vbulletin->options['no_pm_links_message'], $vbulletin->GPC['message']);
}
}
}]]></phpcode>
the original post will be updated ( links replacements ) if found matching :
domain.com
or
any other format (e.g, http://www.domain.com ) that includes the above link as part of it. Indeed, it will capture (.ae, .ca, and all country specific domains ).
The next step,
is to allow using the forum URL in posts (or PMs).
( u know members usually tell each other about their posts)
Sorry for my 3-in-a-row posts.
Cheers
I'm a total preg_match noob. Everytime I look at those it makes my head hurt.
What exactly is it looking for here. I don't see what the criteria are.
$re = "/(www\.)?(\w*[^\.])(\.[a-z]{2,3})/";
From what I can guess it's searching for "www", and then any combination of 2 letters after a " . " ?
Invalid ID
02-12-2007, 12:56 AM
Nice and Handy :)
Is there a possiblity that it can check only the links posted in the posts and exclude the photos that the members upload?
Smoothie
02-23-2007, 02:05 PM
Just wanted to let people know, if you have problems with spammers who register on your site and they try to post links to sell crap, this mod stops 'em dead in their tracks. I get at least 2-3 live humans a month, they register on my site just to post links to sell stuff. This has worked each and every time.
Now if I could just find a way to physically reach out and grab these a-holes by the neck, now that would make my day.
daddygrim
02-28-2007, 01:03 PM
i put the usergroup in..all registred are 2 and i set it max 10 post...and members with 1000 post still get that message..any ideas?
SkyCatcher
02-28-2007, 07:21 PM
i put the usergroup in..all registred are 2 and i set it max 10 post...and members with 1000 post still get that message..any ideas?
Try overwriting the product with this one and get back to me please.
https://vborg.vbsupport.ru/showpost.php?p=1166908&postcount=45
daddygrim
02-28-2007, 07:36 PM
no good..even without adding any users ids i use a test account and has no post and set it to 0..and tried to post a a link and it gives me the spam message. when i take the userids out and try to post a link again..I still get the message.
SkyCatcher
02-28-2007, 09:55 PM
no good..even without adding any users ids i use a test account and has no post and set it to 0..and tried to post a a link and it gives me the spam message. when i take the userids out and try to post a link again..I still get the message.
Ok just to make sure that we're on the same page:
When you enter a usergroupid (like 2 for registered members) all registered members will not be able to post links. They will get the spam message.
The postcount is for all usergroups that you didn't add to the usergroupid field above it.
So if you put in usergroupid: 2
Post count: 10
That means everyone in usergroup 2 cannot post links - ever.
If the member is not a member of usergroup 2 then he must have 10 posts before he can post any links.
daddygrim
03-01-2007, 12:36 AM
maybe you can check it out for me?
SkyCatcher
03-01-2007, 07:49 AM
maybe you can check it out for me?
Sure, I'll take a look. PM sent.
nighteyes
03-11-2007, 07:35 PM
How about a way to block their message from being posted completely? The problem with this is you're filling your forums up with this repetitive message. And they can easily get their post count to the required threshold if their posts are entered. What you do is show a permission denied message instead.
Smoothie
03-11-2007, 08:15 PM
How about a way to block their message from being posted completely? The problem with this is you're filling your forums up with this repetitive message. And they can easily get their post count to the required threshold if their posts are entered. What you do is show a permission denied message instead.Two things. First, either you get the spam links or you see a default message. Either way, this is filling up your forums. Me personally, I'd rather see this message posted. I get a smile on my face when the spammer realizes he's been had. Second, set your post count to higher and don't tell 'em what it is. That will eliminate that problem. Real members will understand that setting a higher post count to disable links is actually a good thing.
Breeze
03-17-2007, 01:52 PM
Thank you for this hack. We have started getting spammed everyday now it seems. Although it is fine like it is if there was a way to auto move threads to another category that would be great.
baerwurz
03-17-2007, 09:05 PM
Genial, danach habe ich lange gesucht!
Jetzt gibts mind. 10 mal täglich was zu lachen. ;-)
Thank you very much!
wacnstac
04-03-2007, 11:37 PM
I have this hack installed. Unfortunately, some turds have found a way around it. They simply register and then post their links within a [quote] block. This hack doesn't seem to see the links if they are in a quote block. If a new revision of this hack could be made to prevent this, that would be awesome.
wacnstac
04-05-2007, 12:17 AM
Anybody? Help!!!
SkyCatcher
04-05-2007, 07:39 PM
Sorry, I haven't had any time lately, but I'll check it out.
wacnstac
04-09-2007, 01:10 AM
Sorry, I haven't had any time lately, but I'll check it out.
I'd appreciate it. It's become a huge issue for me. These turds know if they sign up they can post their spam links in a quote block.
Smoothie
04-09-2007, 02:11 AM
I just tested this on my forum. I was unable to bypass the stop spam links by using the [quote] tag. I was also unable to bypass using any of the other tags.
davidecd
04-09-2007, 02:05 PM
Anybody noticed that if users include smilies, their message gets flagged as spam?
Is there a fix for this?
Smoothie
04-09-2007, 07:00 PM
Anybody noticed that if users include smilies, their message gets flagged as spam?
Is there a fix for this?Just tested this and using smilies (vB installed ones) does not flag the post as spam. Are you talking extenal ones linked to the post?
davidecd
04-10-2007, 01:29 PM
No. The internal VB smilies are actually links to /images/smilies/somesmiley.gif, which Stop Spam Links is picking up as spam link because our forums are hosted on a .com domain.
Is there any way to set an exclude list of addresses to be ignored?
Smoothie
04-10-2007, 03:12 PM
No. The internal VB smilies are actually links to /images/smilies/somesmiley.gif, which Stop Spam Links is picking up as spam link because our forums are hosted on a .com domain.
Is there any way to set an exclude list of addresses to be ignored?Well, like I mentioned above, I tested this on my site and using smilies in the post does not trigger the stop spam links. Not sure why it's a problem for you.
adwade
04-11-2007, 12:57 AM
(v1.2)Ok, now it checks:
When the user creates a new thread
When the user edits a post (quick & advanced)
When the user quotes or replies to a thread
When the user Creates or Replies to a PM
When the user Previews a post
The more I read about this MOD, the better it looks. Is there anyway for it to check emails for TLD's as well, or is that planned for a future release perhaps?
This MOD seems to have every advantage I can think of. Only disadvantage is the user's post is lost when the tripwire goes off.(vs. going into a moderation que for review/approval) Thus if a new user spent a lot of time typing up a first-new-post up, they'll lose it all...Am I correct in that assumption?
Smoothie
04-11-2007, 02:31 AM
Am I correct in that assumption? yes, unfortunately that's the downside. Whatever you put in the no spam message is what will apppear if they try to add links and they have not met the min post req.
For anyone else who wants to use it, here's my list..
.aero,.biz,.cat,.com,.coop,.edu,.gov,.info,.int,.j obs,.mil,.mobi,.museum,.name,.net,.org,.pro,.trave l,.ac,.ad,.ae,.af,.ag,.ai,.al,.am,.an,.ao,.aq,.ar, .as,.at,.au,.aw,.ax,.az,.ba,.bb,.bd,.be,.bf,.bg,.b h,.bi,.bj,.bm,.bn,.bo,.br,.bs,.bt,.bv,.bw,.by,.bz, .ca,.cc,.cd,.cf,.cg,.ch,.ci,.ck,.cl,.cm,.cn,.co,.c r,.cu,.cv,.cx,,cy,.cz,.de,.dj,.dk,.dm,.do,.dz,.ec, .ee,.eg,.er,.es,.et,.eu,.fi,.fj,.fk,.fm,.fo,.fr,.g a,.gb,.gd,.ge,.gf,.gg,.gh,.gi,.gl,.gm,.gn,.gp,.gq, .gr,.gs,.gt,.gu,.gw,.gy,.hk,.hm,.hn,.hr,.ht,.hu,.i d,.ie,.il,.im,.in,.io,.iq,.ir,.is,.it,.je,.jm,.jo, .jp,.ke,.kg,.kh,.ki,.km,.kn,.kr,.kw,.ky,.kz,.la,.l b,.lc,.li,.lk,.lr,.ls,.lt,.lu,.lv,.ly,.ma,.mc,.md, .mg,.mh,.mk,.ml,.mm,.mn,.mo,.mp,.mq,.mr,.ms,.mt,.m u,.mv,.mw,.mx,.my,.mz,.na,.nc,.ne,.nf,.ng,.ni,.nl, .no,.np,.nr,.nu,.nz,.om,.pa,.pe,.pf,.pg,.ph,.pk,.p l,.pm,.pn,.pr,.ps,.pt,.pw,.py,.qa,.re,.ro,.ru,.rw, .sa,.sb,.sc,.sd,.se,.sg,.sh,.si,.sj,.sk,.sl,.sm,.s n,.so,.sr,.st,.su,.sv,.sy,.sz,.tc,.td,.tf,.tg..th, .tj,.tk,.tl,.tm,.tn,.to,.tp,.tr,.tt,.tv,.tw,.tz,.u a,.ug,.uk,.um..us,.uy,.vc,.ve,.vg,.vi,.vn,.vu,.wf, .ws,.ye,.yt,.yu,.za,.zm,.zw
I get this when anyone posts...
Warning: strpos() [function.strpos]: Empty delimiter. in /newreply.php(287) : eval()'d code on line 11
I get this when anyone posts...
Warning: strpos() [function.strpos]: Empty delimiter. in /newreply.php(287) : eval()'d code on line 11
you have whitespace at the end of the list of terms, or two consecutive commas.
btw, just wanted to mention that i have changed the mod so that a space is used as delimeter instead of comma and i also increased the size of the text boxes in ACP.
SkyCatcher
04-12-2007, 07:23 AM
Well I thought I was done with this mod but I guess not so I'll resume tinkering this weekens/beginning of next week to address some of the comments.
Yeah, still giving me the error.
The user looses their entire post sadly. I would keep using my other hack, but it messes up RSS.
adwade
04-13-2007, 04:44 AM
yes, unfortunately that's the downside.(i.e. post is lost) Whatever you put in the no spam message is what will apppear if they try to add links and they have not met the min post req.
Out of curiosity, how do others using this MOD let users know of this fact? Do you just have it in your Registeration Agreement, or in a Welcome PM to them, or what?
I ask, because how is a user to know they can't post a new message with links in it yet? :( Seems if they're unaware of this restriction, the first they'd learn of it was when their post was lost and replaced by the no-spam notice. :mad: Just seems like there is a more user-friendly way of letting new users know this. :confused:
adwade
04-14-2007, 12:41 AM
Having installed Cyb - Prevent Newbies from Posting to Wrong Forum (https://vborg.vbsupport.ru/showthread.php?t=122994) at one time, I just happened to remember it has a feature wherein the new user MUST click on a CONTINUE button before their new post is processed.
Since Cybernetec allows one to customize the phrases used for that MOD I was able to put a NOTICE in there to New Users that they are not able to have LINKS in their posts right off the bat. Not perfect, but it'll work and serve my needs to insure a new user is aware of the fact.
Smoothie
04-14-2007, 03:27 AM
Having installed Cyb - Prevent Newbies from Posting to Wrong Forum (https://vborg.vbsupport.ru/showthread.php?t=122994) at one time, I just happened to remember it has a feature wherein the new user MUST click on a CONTINUE button before thier new post is processed.
Since Cybernetec allows one to customize the phrases used for that MOD I was able to put a NOTICE in there to New Users that they are not able to have LINKS in their posts right off the bat. Not perfect, but it'll work and serve my needs to insure a new user is aware of the fact.We need that in this mod....
I had a member pm me to ask about updating his email address because he forgot his password and since his email had changed he could not get a new password. So, he repeatedly tried to send me his new email address in the pm, but because his post count wasn't sufficient, I kept getting the no spam message. I was like WTF?
The bottom line is he's a legit member, not a spammer. But because of the way I have this setup, he couldn't give me his new email, he had to register a new account. :(
We use this hack and are quite happy with it. Instead of banning .com or http:, we ban specific domains, such as roguedomain.net
NoCo7
05-07-2007, 04:50 AM
LMAO, this is awesome!
Great plug-in, just what I've been looking for... Keep up the good work! Will definitely shoot you a contribution once I get some dough in the old paypal account for this one as it's going to be a fun one to see in play. ;)
NoCo7
05-07-2007, 05:34 PM
Possible to make it pull random comments from a multiple selection list? Mix it up a bit with random posts...
May I also suggest you add an advanded text editing menu for creating these post replacements to use line breaks, underlines, italics, and colors etc...?
advanced text editing menu in adminCP? I don't think I have seen that in any of the mods available here.
It would be easier to open a new thread page in another window and compose the message there and copy+paste it into the adminCP.
Coders Shack
05-16-2007, 02:54 AM
well visual authentication for users that post a link that contains such a TLD would be useful too. Like a over lay saying your post contains a link for spam protection we require you to prove that you are human before proceeding.
SkyCatcher
05-21-2007, 08:22 AM
I'm really glad that so many people like the hack but unfortunately I've been gone for well over a month. I had an issue with my dedicated servers and apparently the hosting company fried my main server and the backup server so I'm in still in the process of rebuilding everything I have worked on in the past 5 years which leaves me no time to work on any kind of vbulletin projects until I get back to where I was :(
If anyone would like to modify this hack, please feel free to do so and continue to improve it as you see fit.
Again, I'm sorry I cannot be of any more help at this time.
almightyone
06-07-2007, 10:07 PM
it makes all my members in custom groups links use my spam catch phrase :\
Just wanted to say a big thanks for this great hack. It's stopped many spammers on my board.
SkyCatcher, sorry to hear about what happened with your host. I hope you get it sorted out.
I know you don't have time to work on this at the moment, but maybe for someone else who is using the hack, I read through this entire thread, but I wasn't able to find out if there was a way to create a white list or exceptions list for sites that would not be blocked/flagged by the hack.
Thanks!
momo2
07-08-2007, 09:56 PM
Installed i love this, this is the best stop spam i have seen, no link no spam ... :)
njoker555
07-09-2007, 01:08 AM
excellent mod - will help with bots registering along with the human spammers - love it :) works great
FatalBreeze
07-25-2007, 10:12 AM
Great hack, but i had to uninstall it, there is a huge error!!
When someone registered to my forums, he got an error a huge headers error, (you know, that headers have already been sent bla bla bla) and in the top of the screen there was something about class_dm_user.php, and it gave an error, said that strpos has an empty delimeter, and said the error is on line two thousand and something, i went there and it was a hook call for private_insertpm_process, so the plugin in private_insertpm_process has an error in it. i think it clashes with the fact that my forums sent a PM to new registered users. I'm looking forward to a fix, because other than that your hack works great :)
almightyone
09-16-2007, 10:07 PM
i have to remove this as well because a new member that has posted way over the 5 posts is et it to can still not post links
BobbyBig
09-18-2007, 10:02 PM
Seems to be a great hack, but is it possible to set the postings as need to be moderated instead of replacing his text ?
mikeinjersey
10-14-2007, 04:38 PM
does this work ok with the latest version of vBulletin ?
And will this hack be updated soon? Seems like a great hack against spammers, but hasnt been updated since december 2006.
mikeinjersey
10-15-2007, 09:57 PM
Seems to be a great hack, but is it possible to set the postings as need to be moderated instead of replacing his text ?
This would be an outstanding Hack if that was implemented. Why just keep the post out there for everyone to see? It adds the same amount of Moderating needed to be done.
Maybe someone else could take-over and modify this hack...since the original guy hasnt been on for awhile ?
There are other modifications already available which put posts into moderation queue. The entire purpose of this mod is to reduce the load on moderators.
Moreover, when posts are put into moderation queue the poster gets confused and posts again and again. I have faced this problem in the past.
mikeinjersey
10-16-2007, 08:00 PM
There are other modifications already available which put posts into moderation queue. The entire purpose of this mod is to reduce the load on moderators.
Moreover, when posts are put into moderation queue the poster gets confused and posts again and again. I have faced this problem in the past.
Well besides that, this Mod is out of date. Alot of its functions dont even work anymore. I tried being a spammer on my forums and was still able to PM other members and edit my post after the automated spam message was displayed.
Moreover, when posts are put into moderation queue the poster gets confused and posts again and again. I have faced this problem in the past.
well, after they did it 5 straight times and noticed that it wont post, they will go away. Better for me , then displaying a message that will confuse most regular members.
Dont get me wrong, I think this is a great Mod.. I just wish it would be taken care of more often.
thefullmaza
12-23-2007, 09:28 PM
thanks v good :p
Electric-Shadow
12-24-2007, 12:46 PM
Installed, could come in handy :D
nice job
raja811
12-24-2007, 12:48 PM
thx
kawzaki
04-27-2008, 03:56 PM
I'm a total preg_match noob. Everytime I look at those it makes my head hurt.
What exactly is it looking for here. I don't see what the criteria are.
$re = "/(www\.)?(\w*[^\.])(\.[a-z]{2,3})/";
From what I can guess it's searching for "www", and then any combination of 2 letters after a " . " ?
Sorry I did not know there was a question for me here.
regexp is hard to use at once but easy to implement if you know what you want to reach.
especially if know what conditions / quantifiers must be used.
For that regexp, I gave an example of what that regexp would match, mainly:
domain.com OR domain.co
$re = "/(www\.)?(\w*[^\.])(\.[a-z]{2,3})/";
(www\.)? means we could have www or not.
consider this list of urls
domain.com
www.domain.com
http://www.domain.com/vb/images/page.php
http://www.domain.co.uk/vb/image/pages/page.php
as you see, not interested in the full URL.
check this, might help a lot:
http://www.ilovejackdaniels.com/regular_expressions_cheat_sheet.png
http://www.ilovejackdaniels.com/regular_expressions_cheat_sheet.png
and must know if there is a match, how many found, and how to iterate through the result array.
sorry for the late reply, better later than never though :D
atcspaul
10-11-2008, 04:25 PM
it works perfect for me. nice mod. i did change the message to something a little nicer incase a good person and not a spammer tries to post a link
mikeinjersey
02-27-2009, 06:24 PM
can you please update this for 3.8 ?
This is the best mod out there to prevent new members from posting links in their posts. But it says the mod hasnt been updated in 2006 ?
I found it really useful when using it before.. I know of no other way of disabling links from being posted by spammers.
SkyCatcher
02-28-2009, 03:19 PM
Hello, I'm sorry that the mod has outlived it's functionality but at the moment I do not have any time to fix it or update it for 3.8 :( I haven't done anything in vbcode for over a year and just don't have the time to start up again.
I'm sorry that the mod doesn't work as intended anymore and hope someone will come along to pick it up and update it to work with 3.8.
Thanks to all who said thanks and got some use out of this :)
mikeinjersey
03-01-2009, 04:25 AM
Hello, I'm sorry that the mod has outlived it's functionality but at the moment I do not have any time to fix it or update it for 3.8 :( I haven't done anything in vbcode for over a year and just don't have the time to start up again.
I'm sorry that the mod doesn't work as intended anymore and hope someone will come along to pick it up and update it to work with 3.8.
Thanks to all who said thanks and got some use out of this :)
I'll help chip-in and maybe pay for it completely.
If you still have the skills, let us know how much is needed.
footose
08-24-2009, 06:59 PM
works for me in 3.8.4
skyyjet
09-19-2009, 11:31 AM
Its a good mod.. bu I find there are numerous tld's like .ws, .su etc so spammers are able to post.. or can someone give list of all tld's so we can enter it there in its configuration?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.