Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
DRC - User must verify their site (prevent spam links in postbit & profiles) Details »»
DRC - User must verify their site (prevent spam links in postbit & profiles)
Version: 1.00, by Dr.CustUmz Dr.CustUmz is offline
Developer Last Online: Aug 2023 Show Printable Version Email this Page

Category: Anti-Spam Options - Version: 3.8.11 Rating:
Released: 11-24-2020 Last Update: Never Installs: 4
Supported
Code Changes  

Tired of users posting random ass sites as their site and having all sorts of links to garbage sites on your board?

Here's an easy solution, lets make them verify they own the site they enter as theirs!

This modification does require a file edit, I will port to a mod when I find time.

open profile.php and find:
PHP Code:
$userdata->set('homepage'$vbulletin->GPC['homepage']); 
Replace it with:
PHP Code:
if($vbulletin->GPC['homepage'] == '') {
    
$userdata->set('homepage'$vbulletin->GPC['homepage']);
  } else {
    
$home_paga str_replace('http://','',$vbulletin->GPC['homepage']);
    
$home_paga str_replace('https://','',$home_paga);
    
$home_paga str_replace('www.','',$home_paga);
    
$home_paga str_replace('/','',$home_paga);
    if(@
fopen ('http://'.$home_paga.'/YourOwnAnagram_site_verification_'.$vbulletin->userinfo['userid'].'.txt''r')){
      
$userdata->set('homepage'$vbulletin->GPC['homepage']);
    }
  } 
Plain text breakdown of this code for people not code savey,
this will only take effect when users edit their details. When they submit their changes, the code does the following:

- if homepage url is blank
- set the field to blank
- if homepage url is not blank
- checks what's in the box and replaces bits of text to get the domain
- opens a connection to the site entered and looks for the file drc_site_verification_USERID.txt
- if that file exists, go ahead and change their domain

Edit YourOwnAnagram to be something unique that other sites wont be using also. example, I use drc

Then in phrases search for:
Quote:
let_other_visitors_know_url
You can replace this phrase with anything you like letting your members know. I use:
Quote:
This option will allow you to display a link to your site in all your forum posts.<br>
<br>
Before your site is displayed you must verify ownership, to do this you need to: <br>
Place an empty file with the name: drc_site_verification_<b>ID</b>.txt<br>
<br>
Where <u>ID</u> is your ID on our forum. <br>example: <i>http://domain.com/drc_site_verification_100.txt</i><br>
<br>
<i>If this file is not found, your homepage URL will not be updated!</i>
<br>

This is a method of spam prevention I have not seen on here before, so I hope you guys get some use from it =)

This will not effect any sites already entered by your users, if you need to clear all sites entered by users you can use the following query:
Code:
UPDATE user SET homepage = '';

Show Your Support

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

Comments
  #2  
Old 11-29-2020, 11:03 AM
puertoblack2003's Avatar
puertoblack2003 puertoblack2003 is offline
 
Join Date: Aug 2005
Location: Philadelphia
Posts: 1,073
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks nice mod i had to make a small change with url

for those with https from http :up:
Reply With Quote
  #3  
Old 11-29-2020, 07:39 PM
Dr.CustUmz's Avatar
Dr.CustUmz Dr.CustUmz is offline
 
Join Date: Aug 2013
Location: USA
Posts: 647
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by puertoblack2003 View Post
thanks nice mod I had to make a small change with url

for those with https from http :up:
you want it as I typed it, a file can be requested through http even though it is on https, but not vice versa.

The way it is built, no matter what combination the user has entered into their URL, IE:

site.com
http://site.com
https://site.com
http://www.site.com

ALL will return

http://site.com/verification_file.txt there is no need to change anything in the code, it will work on http or https, and has been tested
Reply With Quote
  #4  
Old 11-29-2020, 08:57 PM
puertoblack2003's Avatar
puertoblack2003 puertoblack2003 is offline
 
Join Date: Aug 2005
Location: Philadelphia
Posts: 1,073
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dr.CustUmz View Post
you want it as I typed it, a file can be requested through http even though it is on https, but not vice versa.

The way it is built, no matter what combination the user has entered into their URL, IE:

site.com
http://site.com
https://site.com
http://www.site.com

ALL will return

http://site.com/verification_file.txt there is no need to change anything in the code, it will work on http or https, and has been tested

not sure whats going . but not working using a test user,I even checked to see is fopen is enabled.
Reply With Quote
  #5  
Old 11-29-2020, 10:42 PM
Dr.CustUmz's Avatar
Dr.CustUmz Dr.CustUmz is offline
 
Join Date: Aug 2013
Location: USA
Posts: 647
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by puertoblack2003 View Post
not sure whats going . but not working using a test user,I even checked to see is fopen is enabled.
it works, the users URL will not be updated if the TXT file is not on the domain
Reply With Quote
  #6  
Old 11-30-2020, 04:02 PM
yilmaz's Avatar
yilmaz yilmaz is offline
 
Join Date: Sep 2004
Posts: 751
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In fact, vbulletin.org should use this plugin too.
Most of the users have added a fake website profile.
Reply With Quote
Reply

Thread Tools

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 02:58 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03974 seconds
  • Memory Usage 2,282KB
  • Queries Executed 20 (?)
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_code
  • (2)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (3)post_thanks_box_bit
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete