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
  #62  
Old 06-09-2013, 02:33 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What VB version are you using?

You sure you have downloaded the latest version of the mod?
Reply With Quote
  #63  
Old 06-09-2013, 04:27 AM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
What VB version are you using?
vBulletin 4.2.1

Quote:
Originally Posted by BirdOPrey5 View Post
You sure you have downloaded the latest version of the mod?
Yes. Version 1.15 installed.
Reply With Quote
  #64  
Old 06-09-2013, 11:16 AM
kmplex's Avatar
kmplex kmplex is offline
 
Join Date: Dec 2012
Location: USA
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you, signed up for your forum and left a post as well.

- Brian
Reply With Quote
  #65  
Old 06-09-2013, 12:49 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 djbaxter View Post
vBulletin 4.2.1



Yes. Version 1.15 installed.
Weird, working ok for me. I added code to fix this issue.


Please do this- in your admin cp, right click on the users link and choose to open in a new window.

Then try sending the codes again.

Let me know the URL in your browser on the smilie page. (you can remove your domain if you want)
Reply With Quote
  #66  
Old 06-09-2013, 02:08 PM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
Weird, working ok for me. I added code to fix this issue.


Please do this- in your admin cp, right click on the users link and choose to open in a new window.

Then try sending the codes again.

Let me know the URL in your browser on the smilie page. (you can remove your domain if you want)
I created a new dummy user (me-test) and then selected that new member profile in AdminCP.

I don't have an option to right click "send activation codes" and open in a new tab or window from the button at the top of the AdminCP page.

The button is titled "Email Activation Codes".

Using the Firefox Web Developer: Inspector feature, i can see that this fills in and submits a form. Here's the code:

Code:
<!-- form started:49 queries executed -->
    <form id="cpform" name="cpform" method="post" action="../register.php?do=emailcode"><input id="do" type="hidden" value="emailcode" name="do"></input><input type="hidden" value="4eaa72378b27e70a445a12c6a9846659" name="adminhash"></input><input type="hidden" value="1370790095-f6d3a87b7ba0ac11ee6a32833ba6a21ce6b3649e" name="securitytoken"></input><p align="center"><input id="submit0" class="button" type="submit" accesskey="s" value="Email Activation Codes" tabindex="1"></input></p><input type="hidden" value="TESTUSER@ISPDOMAIN.COM" name="email"></input></form>
<!-- form ended: 49 queries executed -->
Notice that it is still referencing register.php although that is no longer the correct name for the file.

1. I do use email verification and have made all the edits in the two indicated phrases.

2. I do not use Facebook Connect.
Reply With Quote
  #67  
Old 06-10-2013, 02:52 PM
RFViet RFViet is offline
 
Join Date: Jan 2006
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi POB5,
The mod looks interested to me, before installing this mod my question is will it effects vB update since it changes file name register.php ? and how do I uninstall if I won't use it in the future ?
Reply With Quote
  #68  
Old 06-11-2013, 08:35 AM
JamesUK JamesUK is offline
 
Join Date: Jul 2004
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed easily and working great, thanks.
I can instantly see a big drop-off in cpu useage on our server (39% of all website traffic has been to our register.php recently!!)
I've put a dummy 'hello world' file in as register.php so the server's not serving up a load of 404s and it all seems happy
thanks again,.
James
Reply With Quote
Благодарность от:
BirdOPrey5
  #69  
Old 06-12-2013, 12:28 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 RFViet View Post
Hi POB5,
The mod looks interested to me, before installing this mod my question is will it effects vB update since it changes file name register.php ? and how do I uninstall if I won't use it in the future ?
After an upgrade you would need to rename register.php again to whatever the custom name you chose is.

If uninstalling just undo whatever manual changes you made. If you manually changed the phrases, change them back. If you manually changed the class_core.php file, change it back. Then just rename the register.php file back to normal and disable/install the mod. It should take just as many steps to install as uninstall.
Reply With Quote
  #70  
Old 06-12-2013, 12:33 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 djbaxter View Post
I created a new dummy user (me-test) and then selected that new member profile in AdminCP.

I don't have an option to right click "send activation codes" and open in a new tab or window from the button at the top of the AdminCP page.

The button is titled "Email Activation Codes".

Using the Firefox Web Developer: Inspector feature, i can see that this fills in and submits a form. Here's the code:

Code:
<!-- form started:49 queries executed -->
    <form id="cpform" name="cpform" method="post" action="../register.php?do=emailcode"><input id="do" type="hidden" value="emailcode" name="do"></input><input type="hidden" value="4eaa72378b27e70a445a12c6a9846659" name="adminhash"></input><input type="hidden" value="1370790095-f6d3a87b7ba0ac11ee6a32833ba6a21ce6b3649e" name="securitytoken"></input><p align="center"><input id="submit0" class="button" type="submit" accesskey="s" value="Email Activation Codes" tabindex="1"></input></p><input type="hidden" value="TESTUSER@ISPDOMAIN.COM" name="email"></input></form>
<!-- form ended: 49 queries executed -->
Notice that it is still referencing register.php although that is no longer the correct name for the file.

1. I do use email verification and have made all the edits in the two indicated phrases.

2. I do not use Facebook Connect.

Thanks. I can confirm this is working on 4.2.1 on my site, so I assume it must be due to some conflict on yours.

In the drop down menu there should also be an option to email activation codes, can you try there too.

I'm talking about the "Quick User Links" drop down.
Reply With Quote
  #71  
Old 06-12-2013, 12:37 AM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
Thanks. I can confirm this is working on 4.2.1 on my site, so I assume it must be due to some conflict on yours.

In the drop down menu there should also be an option to email activation codes, can you try there too.

I'm talking about the "Quick User Links" drop down.
The same thing except it opens a new blank window with the url

Code:
http://myforum.com/register.php?do=requestemail&email=testuser%40isp.com&url=http%3A%2F%2Fmyporum.com%2Fadmincp%2Fuser.php%3Fdo%3Dedit%26u%3D10444
Again, notice it is referencing register.php, not the alternate filename.

I'm not sure what other plug-in could be interfering, or indeed what other plugin I have installed that even references register.php
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 10:41 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.05736 seconds
  • Memory Usage 2,374KB
  • Queries Executed 26 (?)
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
  • (3)bbcode_code
  • (7)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
  • (25)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)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_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