Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > vBulletin 3 Articles
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Automatically add .htaccess and .htpasswd to your forums using the phpaccess script
yoyoyoyo's Avatar
yoyoyoyo
Join Date: Dec 2004
Posts: 1,612

 

USA
Show Printable Version Email this Page Subscription
yoyoyoyo yoyoyoyo is offline 09-10-2007, 10:00 PM

It is a good idea to always secure your modcp and admincp areas (and any other sensitive areas/directories) in your forum, using .htaccess and .htpasswd, but configuring those files can sometimes be a pain for webmasters. There is a FREE php script called phpaccess, which automatically installs and configures the .htaccess and .htpasswd files for you!

The Apache server lets webmasters manipulate its behaviour through scripts.
Exactly this kind of script is the htaccess-file (usually named ".htaccess") You can define a very wide palette of modifications (such as individual error-pages and stuff like that), but the most-common use of the htaccess-file is probably the possibility to protect web-content from unauthored access. Whenever a client wants to access a page of a webserver-directory, Apache searches for a .htaccess-file in this directory. If this file contains a definition for a password-protected area, Apache sends a notification to the client's browser that opens a window to enter your login/pass - combination. After the correct combination was entered and sent to the server, Apache admits the user. Of course you can start your text-editor and write your .htaccess-file from scratch. The easier way is PHPAccess.

PHPAccess allows you to easily safe a complete directory with all it's files and subfolders of your Website against unallowed access.
  • It offers an intuitive and easy-to-use user-interface that displays current information and possible actions on one page.
  • PHPAccess safes every file in the directory it lays in. Not only scripts/html-pages, but also graphics, textfiles,... whatever.
  • You don't have to know anything about the complex unix-htaccess-system nor do you have to create the .htaccess- / .htpasswd-files
  • PHPAccess does this job for you.
  • You even don't have to know the absolute path to your website - PHPAccess finds this information automatically.
  • With PHPAccess you can add, modify and delete the users that have access to your data.
  • All you have to do is upload the PHPAccess-file, give it the correct file-permissions (via ftp-proggie) and start PHPAccess in your web-browser.
PHPAccess is FREE and published under GPL

ADVANTAGES
  • Intuitive user-interface
  • PHPAccess is free
  • 1-2-3 - Installation
  • PHPAccess consists of only one single file!
  • PHPAccess can handle existing htaccess-configurations.
  • You don't have to upload anything, once PHPAccess is installed.
  • You don't have to know anything about server-interna.
  • Everything you need for PHPAccess is a webspace-account with PHP and FTP-Support (to upload the file and change the permissions).
  • PHPAccess is multilingual. Supported languages:
    - English
    - German
    - Traditional Chinese (BIG-5)
    - Brazilian Portuguese
    - French
    - Italian
    - Spanish
    - Japanese (EUC-JP)
    - Dutch
    - Arabic



DOWNLOAD SITE:
Code:
http://www.krizleebear.de/phpaccess/dynamisch/index.php?pageID=1
Reply With Quote
  #2  
Old 10-17-2007, 10:51 AM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

NOTE: phpaccess has been updated to 1.03:

Version | Changes
0.95 - first public release 0.96 - import function for comma-separated textfiles
- English will be the only language supported from now on 0.96b - implemented admin-login-function 0.96c - corrected the admin-login-function 0.96d - scrollable textbox for status-field (after importing many users, the old GUI grew too big)
- admin-login is standard now - default login-pass combination is "test" , "test"
- patched a minor bug (two warnings after first start caused by not defined variables)
0.97 - cleaning-action of the complete code
- the definition of read-only-users (as in the test-environment) is now possible
- now you can easily deactivate the 'Delete-All'-Function
- prepared phpaccess for server-environments in that PHP's 'register_globals'-option is set to 'Off' (standard configuration in PHP >= 4.1.2)
0.97b - .htaccess isn't regenerated when adding a new user, so manual modifications resist. (thanks to Yamamura for this hint)
- Language: BIG5 is now supported! (thanks to Yamamura)
- You can select the language in the user interface by a combobox-entry.
- German will be available soon 0.97c - implemented a meta-tag for the correct charset-selection in BIG5-mode (some european browsers didn't recognize the chinese characters)
0.97d - Language: German is supported again
- login-pass is now masked, too 0.97e - Supporting Brazilian Portuguese (thanks to kilrogg) 0.97f - Much faster - should import 2000 users at once without having timeout problems!
- even prettier code =) 1.00 - Published under GPL
- supports Italian (thanks to Giuseppe Buttafuoco)
- supports French (thanks to PM3)
- After one year of testing I decided to jump to V1.00 1.01 - supports Spanish. (thanks to Jose Luis) 1.02 - supports Japanese (thanks to Yui Sugawara)
- alo supports Dutch (thanks to Grossard Werner)
1.03 - supports Arabic language (thanks to Amry)
next - might support Windows-platforms - but not sure yet
- might include FAQ on several questions I hear over and over again ;
Reply With Quote
Reply


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 05:54 AM.


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.03218 seconds
  • Memory Usage 2,198KB
  • Queries Executed 15 (?)
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)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (1)postbit
  • (2)postbit_onlinestatus
  • (2)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_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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete