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)

solokron 01-24-2007 07:33 PM

header already sent typically represents a carriage or space before the <?php entry.

Quote:

Originally Posted by sam anders (Post 1166581)
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?

Quote:

Originally Posted by sam anders (Post 1166607)
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

Quote:

Originally Posted by sam anders (Post 1166911)
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

Quote:

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

PHP Code:

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

Quote:

Originally Posted by kawzaki (Post 1171141)
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:

PHP Code:

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.
PHP Code:

$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

Quote:

Originally Posted by daddygrim (Post 1192612)
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....8&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

Quote:

Originally Posted by daddygrim (Post 1192846)
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

Quote:

Originally Posted by daddygrim (Post 1192987)
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

Quote:

Originally Posted by nighteyes (Post 1201048)
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

Quote:

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

Quote:

Originally Posted by davidecd (Post 1223295)
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

Quote:

Originally Posted by davidecd (Post 1224150)
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

Quote:

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

Quote:

Originally Posted by adwade (Post 1224609)
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.

RDX1 04-11-2007 10:27 AM

For anyone else who wants to use it, here's my list..


Quote:

.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

RDX1 04-11-2007 10:35 AM

I get this when anyone posts...

Warning: strpos() [function.strpos]: Empty delimiter. in /newreply.php(287) : eval()'d code on line 11

amcd 04-11-2007 10:55 AM

Quote:

Originally Posted by RDX1 (Post 1224847)
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.

RDX1 04-13-2007 03:05 AM

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.


All times are GMT. The time now is 08:14 AM.

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.01369 seconds
  • Memory Usage 1,858KB
  • 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
  • (3)bbcode_php_printable
  • (16)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