Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-11-04 08:10:23

stephan
Plugin Author
From: Bochum, Germany
Registered: 2004-07-26
Posts: 196
Website

Allow for renamed textpattern folder

I would like to be able to give the folder textpattern/ a different name. Why? Because everyone who know my site runs on textpattern can go to the login-page and try to get in. Plus there is nothing – at least that I know of – that would stop them from just trying all possible name/password combinations (brute-force).
Plus some people might consider renaming this folder for cosmetic reasons.

As far as I can see this could relatively easily be solved by setting the name of the textpattern/ folder in the config file and as a variable.


Yoko for Textpattern – A free blog themeMinimum Theme – If all you want to do is write.
Note: I am currently not actively using Textpattern, so I am not in the forums very often

Offline

#2 2006-11-04 14:24:00

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: Allow for renamed textpattern folder

Renaming the Textpattern Admin Directory for Added Security

Don’t know if it still applies to 4.0.4?

Offline

#3 2006-11-04 15:14:11

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: Allow for renamed textpattern folder

stephan wrote:

Because everyone who know my site runs on textpattern can go to the login-page and try to get in. Plus there is nothing – at least that I know of – that would stop them from just trying all possible name/password combinations (brute-force).

Boredom comes to mind. :)

Offline

#4 2006-11-04 15:26:17

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Allow for renamed textpattern folder

…just trying all possible name/password combinations…

Choose better passwords; they should never be words, dates, addresses, etc.

Offline

#5 2006-11-04 15:46:45

stephan
Plugin Author
From: Bochum, Germany
Registered: 2004-07-26
Posts: 196
Website

Re: Allow for renamed textpattern folder

I intend to keep my passwords as safe as possible while still being able to memorize it, but that wasn’t my main point. Being able to rename the textpattern directory gives you

  • a chance to use a nicer name for the admin URL (please, don’t make me use mod_rewrite for such a simple task) which would allow to follow some semantic pattern (admin/ or backstage/ is much more telling than textpattern/, which – I have to admit – contains more than just the admin-site but then again, inxed.php technically belongs to textpattern as well)
  • security by obscurity since passers-by do not know where to look for the admin page plus you could better conceal which CMS/blog-software you use.

Since renaming the textpattern directory is a very simple task for everyone who thinks about the beforementioned points, but this is merely a feature request that can of course be denied but would make upgrading for those of us who care about renaming the folder still a bit more comfortable. (I sense there is a need for this since there already is an entry on this in the wiki which hcgtv mentioned).


Yoko for Textpattern – A free blog themeMinimum Theme – If all you want to do is write.
Note: I am currently not actively using Textpattern, so I am not in the forums very often

Offline

#6 2006-11-04 17:14:44

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: Allow for renamed textpattern folder

stephan, join in the feature request ;)

Offline

#7 2006-11-04 17:42:04

stephan
Plugin Author
From: Bochum, Germany
Registered: 2004-07-26
Posts: 196
Website

Re: Allow for renamed textpattern folder

I’m in :-)


Yoko for Textpattern – A free blog themeMinimum Theme – If all you want to do is write.
Note: I am currently not actively using Textpattern, so I am not in the forums very often

Offline

#8 2006-11-28 16:57:36

hazel
Member
From: Glastonbury, UK
Registered: 2006-09-22
Posts: 36

Re: Allow for renamed textpattern folder

It’s possible to do this with mod_rewrite, though /textpattern will still be accessible.

There’s a snippet on textpattern.org but that doesnt seem to work.

After more tinkering I came up with the following, which aims at renaming “textpattern” to “admin”:

1. If the user types in only “www.yourdirectory.org/admin” — a trailing slash should be added
2. Rewrite “/textpattern/” as “/admin/”

RewriteEngine On

 RewriteRule ^admin$ admin/ [R]
 RewriteRule ^admin/(.*)  textpattern/$1

But at the moment I cant get the trailing slash bit working, which is important otherwise the txp stylesheet, images etc. are not found and it is rendered without them.

Any ideas?

Edit: Seems to be a conflict with the default txp rewrites. I’ve tried swapping the orders around but no luck.

Last edited by hazel (2006-11-28 17:37:14)

Offline

#9 2007-01-21 23:36:00

ande
Member
Registered: 2007-01-21
Posts: 25

Re: Allow for renamed textpattern folder

One good reason to allow this is the following:

IF someone might find a vulnerability to textpattern it will be accessed via the admin interface. As soon as the vuln. is known, it is only necessary to write a dumb script which tries out a gazillion domain names just to find out where are the txp sites. If we could change the textpattern folders name, a lot of us could have a lot more time before being attacked – if at all!

This alone is a good reason I think!

Last edited by ande (2007-01-21 23:36:55)

Offline

Board footer

Powered by FluxBB