Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Hidden Image Checker by BOP5 for VB 3.x and VB 4.x (Stop Cookie Stuffing!) Details »»
Hidden Image Checker by BOP5 for VB 3.x and VB 4.x (Stop Cookie Stuffing!)
Version: 1.02, by BirdOPrey5 (Senior Member) BirdOPrey5 is offline
Developer Last Online: Aug 2023 Show Printable Version Email this Page

Category: Moderators Functions - Version: 4.x.x Rating:
Released: 03-31-2012 Last Update: 04-11-2012 Installs: 47
Supported Uses Plugins Auto-Templates
Translations  



Version 1.02 - Compatibility fix for dbtech Advanced Thanks/Like mod
Version 1.01 - Bug fix for user post counts over 1000
Version 1.0 - Initial Release

Also available on Qapla.com.

For some time now a new type of "Spammer" has been hitting forums. These "spammers" are not as obvious as those trying to make links or sell cheap Viagra. These new spammers use a technique called "Cookie Stuffing" which can make them a lot of money if you don't notice what they've done.

Cookie stuffing is when a malicious user posts a hidden (clear) image in a post. Although you may never see the image it actually links to a location that will set a cookie on the browser of everyone viewing the post. In the cases of cookie stuffing this is almost always a cookie that contains their affiliate code for a site like Amazon or eBay. If anyone on your forum should go on to buy something from Amazon.com later in the day the spammer will get a credit from Amazon because your user has the spammer's cookie on their computer.

At best this allows the spammer to make money off your unsuspecting users. At worst it is taking money away from you if you had your own affiliate cookie (legitimate) it may get over-ridden by the spammer's cookie.

There is no built in means for detecting small transparent images in vBulletin. This mod will show a banner notice under every post by a "new" user reporting the number of images in the post (if any). It only takes a second to scan the post and make sure the number of images reported, matches the number of images you see.

So next time a spammer tries to hide a small clear image in a post you or your mods will see a big yellow notice below the post that it contains an image- allowing you or your staff to take appropriate action. (Usually deleting the post and banning the user.) [Mod functions not part of this modification.]

However since it would get annoying to see these big yellow banners under every post that contains images the mod lets you limit seeing banners to only "new" users- You can choose a minimum post count or # of days registered before the user who posted is not considered new anymore.

In addition you can choose trusted usergroups that will never have their images counted regardless of their number of posts or days registered.

This mod contains both the VB 3.x and VB 4.x version in the same .xml file. It has been tested on VB 3.8.7 and VB 4.1.10 and VB 4.1.11 but it should work on all VB versions from at least 3.7 through 4.1.x and beyond. Feel free to try on earlier versions and let me know if you run into an error.

This mod DOES NOT count attachments or smilies as images since they are safe from cookie stuffing. Only remotely linked images using the [img] BBCode will be counted.

See screenshots for examples.

Please Mark as Installed if you use this.
Donations always appreciated. :up:

Download Now

File Type: zip Hidden Image Check by BOP5v102.zip (5.1 KB, 96 views)

Screenshots

File Type: jpg hiddden_img_check_settings_short.jpg (114.9 KB, 0 views)
File Type: jpg hiddden_img_check_vb4_post.jpg (79.6 KB, 0 views)
File Type: jpg hiddden_img_check_vb4_prepost.jpg (67.1 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
3 благодарности(ей) от:
da_judge, RichieBoy67, sodasusu

Comments
  #2  
Old 04-01-2012, 01:45 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Reserved.
Reply With Quote
  #3  
Old 04-01-2012, 03:15 AM
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For some reason I don't see notice about number of images.

I checked both options, for days and for posts of user, used big numbers (so it certainly should trigger mod) and nothing. Of course, I checked post that has pictures.
Reply With Quote
Благодарность от:
BirdOPrey5
  #4  
Old 04-01-2012, 06:31 AM
Nirjonadda Nirjonadda is offline
 
Join Date: Dec 2011
Location: Italy
Posts: 739
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent works on 4.1.10 !
Reply With Quote
Благодарность от:
BirdOPrey5
  #5  
Old 04-01-2012, 08:19 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Alan_SP View Post
For some reason I don't see notice about number of images.

I checked both options, for days and for posts of user, used big numbers (so it certainly should trigger mod) and nothing. Of course, I checked post that has pictures.
I just released a bug-fix, please check if the new version helps.

If not- Are you sure the images are remote hosted? That is if you look at the source of the post in the editor in source mode the code looks like:
[img]http://www.somewhere.com/folder/someimage.gif[/img]

That is a remote-hosted image.

By default VB4 actually makes remote images into attachments, which makes them safe from cookie-stuffing.

If the source code has [attach] bbcode instead of [img] bbcode then it is not going to show because there is no risk.

The mod only counts the number of closing [/img] tags in a pre-rendered post so it doesn't count smilieys, attachments, or any other built-in images.
Reply With Quote
  #6  
Old 04-01-2012, 12:46 PM
In Omnibus's Avatar
In Omnibus In Omnibus is offline
 
Join Date: Apr 2010
Location: Inside A Blade Server
Posts: 840
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Smart. As a rule, I kill any "hot" outbound links on my sites, however, certain members get a little testy about not being able to link signature images. Is there any possibility of this mod working for signatures?
Reply With Quote
  #7  
Old 04-01-2012, 01:12 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Signature sounds like a good option for the next version, though I just block new users from having sigs at all.
Reply With Quote
  #8  
Old 04-01-2012, 02:20 PM
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It still doesn't work for me.

I know what external image is, and I don't host images on my forum, only on external servers (so I don't need extra space on my server, as well as it makes backup much easier and smaller).

Also, I used option to Enable it always, as well as other two options. I used big numbers, but without ,. in them, just 1 and lots of zeros. Also, I removed all usergroups from trusted usergroups. I also checked with my two accounts, one that's admin in primary and one that's admin in secondary usergroup (in case it checks only primary, but from looking at code I think it doesn't matter).

I checked language settings, reduced phrase, anything and everything that crossed my mind. For some reason, it doesn't work.

I also tried to disable some of my mods (VaultWiki, vBSEO, Sevenskins image resizer), but nothing helped.

EDIT: This is potentially very important.

One of my moderators found image where I could see notice, as well as he (that's how he spotted this, he found it funny that there's notice that says that post has one image). What's different with this post:

User used two (2) image tags, i.e. [img][img]. Obviously by mistake, but it triggered your mod. For some reason, where there's only one image tag (as it should be), there's no triggering of your mod.

Link to this post: http://slobodni.net/t110465/#post790126

You obviously see one unparsed image tag. And I see notice.

EDIT2:
I just created test thread, you could see it here: http://slobodni.net/t111040/ I enabled for guests to see image notice for time being, so you only need to follow link. Notice is in Croatian, but I wrote it in English in posts, so you could obviously see. And, image I use is from my site, but posted with image tag.
Reply With Quote
  #9  
Old 04-01-2012, 04:56 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very weird... if you can PM info for a Admin Login (please make sure language for account is English) - I can play with it and see if I can see what's wrong.
Reply With Quote
  #10  
Old 04-01-2012, 09:16 PM
Sayid Sayid is offline
 
Join Date: Jan 2009
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What about images uploaded on other sub-domain of the same site. For example: image.mysite.com. is it counted or not?

Many thanks for sharing.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:21 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.04559 seconds
  • Memory Usage 2,344KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (5)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (4)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete