You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 46 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Renaming admin.php [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
TechnoBum
Nuke Soldier
Nuke Soldier


Joined: Feb 18, 2003
Posts: 14


PostPosted: Tue May 27, 2003 8:18 pm Reply with quoteBack to top

This is the second time I come across a forum discussion about renaming the "admin.php" file so that only admin can have access to the login page.

Personally I think this is an excellent idea, but unfortunately it's quite the job to do it right.

One of the posts I read, the fella went thru just about every .php files, short of the lang files, in order to change every instance where the admin.php file is called. Now that's an awful lot of files!

I am writing this post for two reasons:
1 - does anyone here know if there is an EASIER way to hide the admin login page ? and,
2 - what would be the possibilities of having an admin option in the config panel similar to the "Edit admin" or "Edit users", that would be "Edit admin.php" where the admin would have the option to rename that file to any other name s/he wishes ?

Maybe a coder genius could create an add-on module that could do that.
Maybe such a module already exist ?
Find all posts by TechnoBumView user's profileSend private message
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Wed May 28, 2003 1:25 am Reply with quoteBack to top

what's the point? Unless you have an admin username and password, you can't access the admin section, even if the login screen is there, so where's the advantage?

If somebody wanted to hack ur site, they'd be using a file sniffer and would find it anyway.

AI
Find all posts by ArtificialIntelView user's profileSend private message
el_flynn
Nuke Soldier
Nuke Soldier


Joined: Apr 23, 2003
Posts: 17

Location: Third rock from the sun

PostPosted: Wed May 28, 2003 1:25 am Reply with quoteBack to top

What about hiding the admin branch of the code in a separate web directory, and securing that directory through various means (.htaccess, IP/hostname restrictions via the web server itself, etc).

That other directory could contain only the admin-specific directories, and the publicly accessible directory could have its admin-related directories removed. The admin-only directory could be made to point to the same DB etc.

Even better solution: if you're hosting your own site, make the admin directory only internally accessible.

Has anyone tried this approach?
Find all posts by el_flynnView user's profileSend private message
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Wed May 28, 2003 1:39 am Reply with quoteBack to top

moving the admin.php out of the root directory is a bad move cause it still requires re-coding a lot - just as much as renaming it would. You'd have to change all the mainfile calls, all the config calls, all the theme calls etc.

Putting an access deny all and allow from ***.***.***.*** is a good idea though (repacing ***s for the IPs of anybody who should have access) - doesn't work if admins have dynamic IPs like i seem to have now though.

AI
Find all posts by ArtificialIntelView user's profileSend private message
TechnoBum
Nuke Soldier
Nuke Soldier


Joined: Feb 18, 2003
Posts: 14


PostPosted: Wed May 28, 2003 7:27 am Reply with quoteBack to top

These are great ideas being tossed around here.

I'm gonna do a little experimenting here an see what gives.

Keep the great ideas coming guys Very Happy
Find all posts by TechnoBumView user's profileSend private message
el_flynn
Nuke Soldier
Nuke Soldier


Joined: Apr 23, 2003
Posts: 17

Location: Third rock from the sun

PostPosted: Wed May 28, 2003 12:52 pm Reply with quoteBack to top

AI, i tried it out and duplicated the code tree into another virtual directory on my local machine. Things seem to be working ok; so far i can do the following on the admin "branch":

    post new stories
    edit existing ones
    post comments
    create new forums
    optimize the DB

i'm assuming that since i can do all these most of the functions would be working.

On the "public" branch, i renamed the "admin" folder and admin.php file to admin2 and admin2.php respectively (forgot to mention this in the original post) . things also appeared normal -- i can view the changes made and the new stories i posted via the admin branch.

so taking that one step further, i can now lock down the admin branch with whatever IP restrictions, access files etc methods that the web server has.

maybe you could even kick it up a notch by:


    putting the admin branch somewhere accessible only via your intranet
    putting the admin branch on a totally separate machine on the network (which needs to still have access to the nuke db of course)
    and many other network security tactics that i don't even know about


anyone out there willing to try this on their production box?


Last edited by el_flynn on Wed May 28, 2003 12:56 pm; edited 1 time in total
Find all posts by el_flynnView user's profileSend private message
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Wed May 28, 2003 12:56 pm Reply with quoteBack to top

no, the admin branch should be in the same directory tree as the site. (as in somewhere off the site root dir) for web server reasons.

You can lock down just the admin.php by using a <file ^admin.php> tag in the .htaccess file

AI
Find all posts by ArtificialIntelView user's profileSend private message
el_flynn
Nuke Soldier
Nuke Soldier


Joined: Apr 23, 2003
Posts: 17

Location: Third rock from the sun

PostPosted: Wed May 28, 2003 12:59 pm Reply with quoteBack to top

I replied to AI's post, but then realized I just put my foot in my mouth. haha.

Hey -- maybe that quote can be another option in the bbcode for people who type faster than they can think...
Find all posts by el_flynnView user's profileSend private message
Tank863
Lieutenant
Lieutenant


Joined: Feb 21, 2003
Posts: 195

Location: Philadelphia

PostPosted: Thu May 29, 2003 11:14 am Reply with quoteBack to top

I use the .htacces file to block out all other IP addy's from accessing the admin.php

it works.. when I try to access the admin from work... i'm blocked out.. so I know that anyone else that attempts will be blocked out...

I hope that my assumption is correct....

Tank863
Find all posts by Tank863View user's profileSend private messageVisit poster's websiteICQ Number
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.215 Seconds - 186 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::