remove create user page SOLVED

Discussion regarding Joomla! 1.5 security issues.
Joomla! Vulnerable Extensions: ... Extensions

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Security Checklist
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Wed Dec 15, 2010 5:18 pm

remove create user page SOLVED

Post by owen2 » Wed Dec 15, 2010 5:41 pm

I have set up a plugin which creates users for joomla, and have hacked the following files to change where the links to 'register new user', 'password remind' and 'username remind' point to


BUT - I have noticed that if someone knows it is a joomla site and manually types one of the following links:


They are STILL sent to the joomla registration/remind/reset pages - so can bypass the method I have set up to create users.

Can these pages be removed completely as they are not needed - or block access to these links?
Last edited by owen2 on Wed Dec 15, 2010 9:48 pm, edited 1 time in total.

Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Wed Dec 15, 2010 5:18 pm

Re: remove create user page

Post by owen2 » Wed Dec 15, 2010 9:46 pm

OK - solved it.....

Since I have SEF URL's activated in joomla, people can potentially type in 2 different URL's to get to the registration pages:

http://www.MYDOMAIN.COM/index.php?optio ... w=register



There are also 2 options to type in for lost password / username pages:



I am not wanting people to be able to access any of these pages, since I have used another plugin for the registration process, which unfortunatly does not take the above pages away... so people can type in the direct URL to get to any of these pages, and register for my site in a way I do not want them to register!

I tried redirecting plugins but found they only worked for some of the URL's and not others... and then I thought - how about redirecting with .htacess.... and when I tried that, it worked for some URL's and not others!

However, using BOTH methods, I have now been able to redirect all the above links!

I have used JRedirect plugin for the non SEF URLs' using the following in the plugin paramaters:


change 'redirect-to-here.html' to the URL's you want the pages to be redirected to.

THEN, put these line in your .htaccess files:

Redirect /component/user/reset.html
Redirect /component/user/remind.html
Redirect /component/user/register.html

Issue SOLVED - all redirections should work
I hope someone else finds this useful!


Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Dec 28, 2010 12:03 pm

Re: remove create user page SOLVED

Post by kosuke » Tue Dec 28, 2010 1:16 pm


I achieved the blocking of user registration, remind or reset with the following lines in .htaccess:

# Disable calls to user registration or password or username reset ("register", "remind", "reset")
RewriteCond %{REQUEST_URI} /component/user/(remind|reset|register)(\.html)? [OR]
RewriteCond %{QUERY_STRING} option=com_user&view=(remind|reset|register)
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]

(I inserted the lines right above the section starting with "########## Begin - Joomla! core SEF Section".)

I'm using Joomla 1.5.22 on Linux.

Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Wed Feb 16, 2011 3:58 pm

Re: remove create user page SOLVED

Post by GVerheij » Mon Apr 13, 2015 1:41 pm

Hi Guys,

I updated this htaccess-trick for Joomla 3.4:

Code: Select all

# RewriteBase /

# Disable calls to user registration ("register", this url ends with: view=registration))
# Send all blocked request to homepage, use Flag [F] for 403 Forbidden error!
RewriteCond %{QUERY_STRING} (view=registration) [NC]
RewriteRule ^(.*)$ index.php [R]

## Begin - Joomla! core SEF Section.
Regards, Gerard

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 28176
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: remove create user page SOLVED

Post by Per Yngve Berg » Mon Apr 13, 2015 3:34 pm

Why are you doing all this? In Global Configuration, set New User Registration=No. That's all.


Return to “Security in Joomla! 1.5”