Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Rename register.php by BOP5 Details »»
Rename register.php by BOP5
Version: 1.1.5, by BirdOPrey5 (Senior Member) BirdOPrey5 is offline
Developer Last Online: Aug 2023 Show Printable Version Email this Page

Category: Anti-Spam Options - Version: 4.x.x Rating:
Released: 05-03-2013 Last Update: 05-08-2013 Installs: 278
Supported Uses Plugins
Code Changes  

Brought to you by BirdOPrey5 / Qapla.com

It's great when you stop spam bots during registration but this mod gives you a chance to stop them BEFORE they even attempt to register.

I have received multiple reports from people who say their "register.php" was getting hammered with spam requests- so much so it was like a denial of service attack. Even if they disabled registration they would waste so much resources their site was slow or worse- had to be taken offline.

What this mod does is allow you to rename the register.php file- my theory is many of the vBulletin spamming bots are hard coded to look for register.php. Using a unique name will throw them off, at least for a while.

To manually change the name of register.php would have meant dozens, maybe hundreds of manual edits to files and templates previously.

This mod makes it as simple as possible. At worst you will need to edit 2 phrases and 1 file, and some people don't need to edit anything at all.

Compatible with VB 3.8.x (and 3.7, and 3.6 probably too) and all VB 4.x.x versions.

Basic Instructions
1) Import XML File
2) Go to mod settings in Admin CP
3) Rename your register.php file via FTP or some other means- make it a unique value but only use basic letters, numbers, underscores, or hyphens. Something like "joeregister999.php"
4) In the mod settings, set the value of register.php to the new file name you chose.
5) If you require email verification during registration follow the next setting in the Admin CP and edit the phrases listed (activateaccount and activateaccount_chnage phrases in Email Body)
6) Finally, if you use Facebook Connect on your forum make the manual file edit of class_bootstrap.php as instructed.

Now enjoy your new filename for register.php, I hope it reduces server load and spam in general.

------------------------------------------------------

Please "Mark as Installed" if you use this.
Donations always appreciated. :up:
Nominate MOTM if you LOVE it!

----

Note- if having problems sending activation codes or other Admin CP related activities use the solution in post #197.

Download Now

File Type: zip Rename register.php by BOP5_v115.zip (5.0 KB, 1064 views)

Screenshots

File Type: jpg bop5_rr_settings.jpg (78.2 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #172  
Old 03-04-2014, 10:15 PM
ggrimes620 ggrimes620 is offline
 
Join Date: Feb 2013
Location: Georgia
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome mod!
Reply With Quote
  #173  
Old 03-20-2014, 07:17 AM
lazytown lazytown is offline
 
Join Date: Feb 2004
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First, thank you for posting this and trying to help. I installed this along with other suggestions from OZZY.

Renaming "register.php" is now fairly useless against the latest spam software. It was a good idea and probably once worked quite well,, but spam software (xrumer, etc) must now just be looking at the register link to figure out the URL, so the filename really doesn't matter anymore. I renamed register to completely random numbers/letters, two separate times, and all settings are correct. Within 30 minutes, the spambots are filling out forms on the new register filename. I know they are getting past the rename plugin trick because I'm getting PMs with them being blocked by a separate hostname spam plugin (which does help eliminate some spam).

I wonder if implementing a javascript generated version of the link to register.php (or whatever we rename it to) would block them again for a while, until they figure a way around that as well. That is what some websites use to reduce email harvesters.
Reply With Quote
  #174  
Old 05-23-2014, 12:29 AM
addamroy addamroy is offline
 
Join Date: Sep 2010
Posts: 352
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how do I keep stumbling on YOUR mods.

Anyway, couple inquiries for you.

What happens if I have already made some manual template edits changing register.php to something else? For example the register link in the top right corner, I changed where that links to, also changed the URL in the 'no permission' phrases, etc things of that nature.

What I did was took the registration form from your OTHER mod, really fast registration, and put it into a new custom vbulletin page. So naturally I went through a few of the templates/phrases and added my own URL.

My concern is whether or not installing this mod will effect all of the adjustments. I figure I might as well rename register.php to prevent the last bit of spammish traffic that might be going directly to that URL to register, rather than clicking the register button itself, of coarse.
Reply With Quote
  #175  
Old 05-23-2014, 07:47 AM
john7911 john7911 is offline
 
Join Date: Feb 2013
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great Mod thanks BOP
Reply With Quote
Благодарность от:
BirdOPrey5
  #176  
Old 05-23-2014, 06:36 PM
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 addamroy View Post
how do I keep stumbling on YOUR mods.

Anyway, couple inquiries for you.

What happens if I have already made some manual template edits changing register.php to something else? For example the register link in the top right corner, I changed where that links to, also changed the URL in the 'no permission' phrases, etc things of that nature.

What I did was took the registration form from your OTHER mod, really fast registration, and put it into a new custom vbulletin page. So naturally I went through a few of the templates/phrases and added my own URL.

My concern is whether or not installing this mod will effect all of the adjustments. I figure I might as well rename register.php to prevent the last bit of spammish traffic that might be going directly to that URL to register, rather than clicking the register button itself, of coarse.
Any template instances/links to register.php should be automatically changed by this mod to the new value. If you created a custom php file then you may need to manually edit the php file with the new register.php name however really fast registration was coded to work with this mod out of the box.
Reply With Quote
Благодарность от:
CAG CheechDogg
  #177  
Old 05-27-2014, 01:40 AM
gregmlb gregmlb is offline
 
Join Date: Dec 2007
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This mod works great - except when a potential registrant is browsing using ForumRunner. If he or she hits the "Register" button through ForumRunner, then a 404 Page Not Found error pops up (because register.php no longer exists).

How can this be fixed so mobile users can successfully register after installation of this mod?
Reply With Quote
  #178  
Old 05-27-2014, 12:50 PM
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 gregmlb View Post
This mod works great - except when a potential registrant is browsing using ForumRunner. If he or she hits the "Register" button through ForumRunner, then a 404 Page Not Found error pops up (because register.php no longer exists).

How can this be fixed so mobile users can successfully register after installation of this mod?
Interesting... thanks for letting me know. I'll work on some kind of ForumRunner fix. My initial thought is a copy of register.php but modified so it only works for users in ForumRunner.
Reply With Quote
  #179  
Old 05-29-2014, 03:11 AM
CaptainAwesome CaptainAwesome is offline
 
Join Date: Apr 2014
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When i click through the "Link to Edit Email Body Phrases", it takes me to the Email Body Text Page. When i click on edit, it takes me through to a page for the "activeaccount" but i'm unable to edit anything.

How do i edit the activateaccount and activateaccount_change parts?
Reply With Quote
  #180  
Old 05-30-2014, 02:36 PM
lillylissy's Avatar
lillylissy lillylissy is offline
 
Join Date: Feb 2006
Location: Stuttgart / Germany
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you BirdOPrey5 for this modification!

For PhotoPost-Users a code adjustment is necessary:

Line 380 of vb3.php located in the forums subdirectory of their product:

PHP Code:
$regtext " &middot; <a href=\"{$Globals['vbulletin']}/register.php?action=signup\">{$Globals['pp_lang']['register']}</a>"
Reply With Quote
  #181  
Old 05-31-2014, 06:17 AM
madness85 madness85 is offline
 
Join Date: Jun 2012
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the tab email activation codes in admincp at the top of a users profile page or in quick user links still takes me to register.php please help
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 01:40 AM.


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.06623 seconds
  • Memory Usage 2,366KB
  • Queries Executed 28 (?)
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_php
  • (2)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
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (26)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_postinfo_query
  • fetch_postinfo
  • 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