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
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
  #192  
Old 06-22-2014, 07:26 AM
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Location: Riverside, California USA
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have not had any problems with spam at all since I installed this ... actually not one single spam account at all! And it has been since the day he released this mod that I have not had any spam or bots hitting my new register.php file ...
Reply With Quote
3 благодарности(ей) от:
BirdOPrey5, Max Taxable, tbworld
  #193  
Old 06-22-2014, 09:25 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is no one perfect anti-spam mod... The main purpose of this mod was to help people who were having bots specifically target register.php.

Some people have found it effective in general spam prevention, some have not- it is up to you if the few minutes of installing and setting it up is worth it to you. Maybe it's only stopping 5% or 10% of spammers- what I do know is that there are at least *some* spam bots out there that are hard coded to look for register.php can can't continue if it doesn't find one.

Others may have always simply looked for a "register" link on the forum and in that case this does not help.

Tip:- For those claiming total ineffectiveness make sure you don't have a register.php file in your forum directory. Some people have upgraded their VB versions or re-uploaded a fresh copy of the VB files and of course if you do that register.php will come back if you don't rename it again. You'll have both the custom name and the original name on the server and the bots will find the original name and be able to use it. The original register.php must not exist after you rename it.
Reply With Quote
2 благодарности(ей) от:
CAG CheechDogg, Max Taxable
  #194  
Old 06-22-2014, 03:34 PM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CAG CheechDogg View Post
I have not had any problems with spam at all since I installed this ... actually not one single spam account at all! And it has been since the day he released this mod that I have not had any spam or bots hitting my new register.php file ...
Alot of the problem with it, from people I have actually helped with it, is related to their own attention to detail (lack of) in installing this.

However even in the perfectly done install world, like at OzzModz, we still get the spam attempts. Which are stopped by, other Mods.

There's no silver bullet, it takes several bullets to inhibit spam.
Reply With Quote
  #195  
Old 07-15-2014, 07:40 PM
U-Fig U-Fig is offline
 
Join Date: Nov 2012
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,
this is a great product andf i have had it installed for a while now, however, I found a teensy issue with it in regards to manually sending activation codes from the users profile page in the adminpanel, the button saying 'Email Activation Codes' that is on top of the profile page for a user awaiting email conformation still leads to register.php instead of the new value.
sorry if this was already answered and i missed that, thanks. otherwise a great mod.
Reply With Quote
  #196  
Old 08-24-2014, 07:51 AM
BigAl205's Avatar
BigAl205 BigAl205 is offline
 
Join Date: Oct 2010
Location: Hayden,AL
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This mod works great, but it's best if you come up with a name that doesn't have the word "register" or "join" in it because bots are searching your site for those keywords, and "register123" would still be found. It would be best to name it something that isn't even a real word, such as "reboster" or the like. The end user might see it in the URL during the registration process, but it will still function the same.

I also recently created an IP logger and named it "register.php", that way if any bot tries to visit the standard registration page, its IP gets logged into a text file so I can block them later. Just over a matter of 2 days I've already caught some China-bot IPs in my little web trying to register.
Reply With Quote
Благодарность от:
BirdOPrey5
  #197  
Old 11-06-2014, 10:53 AM
addamroy addamroy is offline
 
Join Date: Sep 2010
Posts: 352
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The "email activation codes" option does not work with this mod enabled.

Specifically, if you try to 'email activation codes' via a user's profile, it redirects to the standard register.php page which becomes a 404.

Can you fix this please?
Reply With Quote
  #198  
Old 11-08-2014, 10: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

Hello,

It should work, if not something else is interfering. I'm afraid it can't be fixed- I had to use a lot of tricks to get that to work at all.

What you could do as a work around is make a copy of register.php, put it where it is supposed to be, but in your .htaccess file deny anyone from loading the page except for your ip address.

Create (or add to) an .htaccess file:

Code:
    <Files register.php>
        Order deny,allow
        Deny from all
        Allow from 127.0.0.1
    </Files>
Replace the red IP address with your own IP address.

Obviously the above is for Apache servers only. If on IIS or something else you'll need to figure out how to translate that to your own server, I'm sorry I have no idea how.
Reply With Quote
Благодарность от:
blind-eddie
  #199  
Old 12-16-2014, 08:12 PM
too_cool_3's Avatar
too_cool_3 too_cool_3 is offline
 
Join Date: Sep 2007
Location: ON, Canada
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by heyzeus909 View Post
Sorry if this is a repeat, but the Tapatalk stuff earlier in the thread confused me - which is easy to do. I just wanted to confirm that it's probably a good idea for owners of Tapatalk enabled forums to take go to AdminCP > Settings > Options > Tapatalk Options > Register page url: *change_to_renamed*.php

Thank you for your work.
This might be good info to include in the first post =)

I just installed this mod (thanks BoP5!) and renamed my register.php to something without the word register in it and within a couple minutes bots are still hammering my register.php, I have about 3-5 on that page at all times. Is there anything else I can do to stop them from getting through?
Reply With Quote
  #200  
Old 12-16-2014, 08:18 PM
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Location: Riverside, California USA
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Block those IPs using htaccess ...
Reply With Quote
  #201  
Old 12-16-2014, 09:15 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you follow all the instructions and change everything?
Reply With Quote
Благодарность от:
CAG CheechDogg
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 09:05 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.05040 seconds
  • Memory Usage 2,382KB
  • 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_code
  • (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
  • (32)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)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