Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 11-01-2012, 07:00 PM
Macsee Macsee is offline
 
Join Date: Sep 2010
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Unusual question - changing the name of the register.php file

OK, there are numerous plugins to combat bot registrations, and I'm using several of them.

But it seems one simple solution would be to confuse bots. Bots arrive looking to fill in a form on register.php. So if you have no form there and just some text telling users that you've moved the page to new_register.php ... that could turn out quite neat!

I'd like to try it.

One caution: If you do change the name of your register.php file, you'll also need to make changes within the file. Is that easy to do and what would need to be changed? Can I just find and replace all instances of register.php with new_register.php?
Reply With Quote
  #2  
Old 11-01-2012, 10:12 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you search for and replace register.php in all files, templates, and phrases, I don't see why it wouldn't work (I've heard of it being done before).

Edit: here's an idea: leave the original and change it so it does everything except the actual creation of the user.
Reply With Quote
  #3  
Old 11-02-2012, 01:59 AM
nerbert nerbert is offline
 
Join Date: May 2008
Posts: 784
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You might try editing in a hidden input in your registration form like

<input type="hidden" name="duck" value = "bird" />

then put a plugin at the beginning of register.php

PHP Code:
if($_REQUEST['duck'] == ''
{
       die();

I suspect bots have the register form ready to go and look only at the non-hidden inputs
Reply With Quote
Благодарность от:
Macsee
  #4  
Old 11-02-2012, 11:41 AM
Macsee Macsee is offline
 
Join Date: Sep 2010
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent suggestions, thanks for the feedback (kh99, sorry, it doesn't seem I can give you any more "Likes" at present).

Quote:
If you search for and replace register.php in all files, templates, and phrases, I don't see why it wouldn't work (I've heard of it being done before).
Ah, but if the bot is following the link on your homepage, then changing all instances of register.php in all files, templates and phrases will point all new users to the new location of the registration page rather than sending them to the fake page which has instructions to the humans telling them where to proceed to complete their registration.

Quote:
here's an idea: leave the original and change it so it does everything except the actual creation of the user.
What lines would you disable in the page to prevent actual creation of the user?
Reply With Quote
  #5  
Old 11-02-2012, 12:06 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Macsee View Post
Ah, but if the bot is following the link on your homepage, then changing all instances of register.php in all files, templates and phrases will point all new users to the new location of the registration page rather than sending them to the fake page which has instructions to the humans telling them where to proceed to complete their registration.
Oh, I see, yeah. I was thinking that bots just assume it's called register.php. You could tell by looking at the web server logs, but I never have. Anyway, then you're probably right, if you just change any reference to register.php in the file you'll probably be OK.


Quote:
What lines would you disable in the page to prevent actual creation of the user?
You could take out everything having to do with the user datamanager. But now that I think about it more, if you're just talking about bots I'm not sure there's any point, because it would probably just give up if register.php isn't there, and you'd get the same result.
Reply With Quote
  #6  
Old 11-02-2012, 12:26 PM
Macsee Macsee is offline
 
Join Date: Sep 2010
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

True - these are mutually exclusive approaches. Either you show the bot no form and confuse it, or you show a form that doesn't result in account creation. My preference would be the former simply because humans sometimes don't read instructions (no! I've got to be kidding surely! ). If they see a form they might skip reading the note about it being the wrong form and they could end up filling in the form meant for bots.

It was out of academic interest that I asked about what lines to remove to prevent account creation. I figured some forum owners might want to go down that route.

--------------- Added [DATE]1351889673[/DATE] at [TIME]1351889673[/TIME] ---------------

kh99, that doesn't work.

In the register.php file if I change all instances of "register.php" to "newfilename.php" ... I hit a snag. At newfilename.php, once I enter the date of birth and click submit I get taken to register.php?do=checkdate and of course on register.php I've got just a plain text message for human visitors
Reply With Quote
  #7  
Old 11-04-2012, 10:09 AM
Macsee Macsee is offline
 
Join Date: Sep 2010
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've been trying to find a solution for this but to no avail. There's obviously some line/s of code in register.php that need to be amended but I can't for the life of me figure out what it is.
Reply With Quote
  #8  
Old 11-04-2012, 01:17 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You probably need to look for templates and phrases that need to be changed. But if you want all other vb pages to stay pointing to register.php you'll have to sort out which ones to change, maybe by looking through the templates and phrases used by register.php. (If you turn on "Add Template Name in HTML Comments" you can view the html source of a page to see which templates are used, and you can usually find phrases by using "search in phrases" under the Languages & Phrases menu in the admincp).
Reply With Quote
  #9  
Old 11-06-2012, 09:27 AM
betterthanyours betterthanyours is offline
 
Join Date: May 2012
Posts: 193
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This isn't really necessary...you can achieve great anti spam if you put some effort into it. You can install things such as keycaptcha for example
Reply With Quote
  #10  
Old 11-07-2012, 09:00 AM
Macsee Macsee is offline
 
Join Date: Sep 2010
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by betterthanyours View Post
This isn't really necessary...you can achieve great anti spam if you put some effort into it.
If you "put some effort" into reading the OP, you'll notice that I have put some effort into it and that I'm already aware of and use several plugins.

This thread seeks to explore one new method I've never tried before. On that topic do you have anything to contribute aside from your signature drop?
Reply With Quote
Reply

Thread Tools
Display Modes

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


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.08204 seconds
  • Memory Usage 2,261KB
  • Queries Executed 13 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (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_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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete