Closing new member registrations?
I searched for an answer to this, but couldn't find one. My archive is currently dealing with a wave of duplicate and spam accounts and I was wondering if it was possible to put a temporary stop to new member registrations?
As far as I know there is no way to disable the user registration right out of the box.
Have you enabled captcha verification as a first step?
Otherwise the only way I can see to easily toggle registration on and off would be a module.
Quick and dirty:
In file user/register.php edit the empy line 24 and add the following code:
This will redirect back to the starting page.
Really quick and really dirty 😉
You would be better of trying captcha verifications first!
(To do so, you have to login as admin first, then follow: Admin -> Settings -> Site Settings -> set the bottom dropdown to "yes". This requires GD-Library though, which is not installed on every webhost)
Thank you for your reply! We do have captcha on. The main problem is existing (non spam) members creating multiple accounts pretending to be different people (I believe one was up to 50+ ... no clue why.)
I tried to do the quick and dirty way, but when I uploaded the edited register.php file and clicked on the register link, instead of redirecting to the index page, this error was at the top of the register page, with the registration form still visible:
Warning: Cannot modify header information - headers already sent by (output started at /home/---/---/header.php:215) in /home/---/---/user/register.php on line 24
I don't know if you still have this problem but have you tried the meta tag redirect like this:
echo '<META http-equiv="refresh" content="0;URL=YOUR_URL">';
Change the YOUR_URL to the URL you want it to redirect to.
(The exit; part isn't neccesary. It just means that it wont show the rest of the code before the redirect.)
My site is experiencing this same issue. I do have the captcha feature enabled for new registrations but we keep getting hit with fake/spam accounts. We're getting about 20/week. I can lock the account, delete it through my php files and block the IP address through my web host, but they just keep coming. Anybody got any other ideas how to deal with this issue. Thanks. 🙁
Start with this: http://efiction.org/forums/index.php?topic=8901.0
It should help with some of the bots.
Thank you so much for linking me to this. I just got hit again today by that same damn autobestpreis.eu bot. :cursing: I really appreciate the help. TAG
Thank you for pointing this out. I've now added it to my site.
I just deleted 500 plus spam and hacker accounts from my website today, search form and ended up deleting the register.php file out off the
user. If you click on the link it just give 404 error message page not found. I also inactivated the login block for good measure and turned on captcha just in case.
it doesn't harm the site and u can download the efiction anytime and just upload register.php when you want members.