vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - Stop Spam Links 1.2 Gold (https://vborg.vbsupport.ru/showthread.php?t=134778)

SkyCatcher 12-25-2006 10:00 PM

Stop Spam Links 1.2 Gold
 
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 Plugins
Installation Instructions
  • Import the Product file via the AdminCP
  • Go into Vbulletin Settings > Stop Spam Links
  • Suit to your needs
Install 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

Quote:

Originally Posted by Sexified Ninja (Post 1145115)
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

Quote:

Originally Posted by Smoothie (Post 1145129)
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

Quote:

Originally Posted by SkyCatcher (Post 1145132)
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

Quote:

Originally Posted by taydu (Post 1145162)
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

Quote:

Originally Posted by Smoothie (Post 1145287)
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

Quote:

Originally Posted by Smoothie (Post 1147391)
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

Quote:

Originally Posted by Smoothie (Post 1148090)
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

Quote:

Originally Posted by SkyCatcher (Post 1148099)
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;
Code:

.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

amcd 01-08-2007 10:30 AM

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

Quote:

Originally Posted by amcd (Post 1153478)
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!

amcd 01-08-2007 12:45 PM

Quote:

Hey! I like my logic
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

SkyCatcher 01-09-2007 10:32 PM

Quote:

Originally Posted by amcd (Post 1153568)
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

Quote:

Originally Posted by TROLL (Post 1156338)
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? :)

Quote:

Originally Posted by Smoothie (Post 1156645)
Nice name.


SkyCatcher 01-12-2007 04:28 PM

Quote:

Originally Posted by TROLL (Post 1156338)
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?


All times are GMT. The time now is 12:47 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01345 seconds
  • Memory Usage 1,841KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete