vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Community Lounge (https://vborg.vbsupport.ru/forumdisplay.php?f=13)
-   -   vbusers + htaccess (https://vborg.vbsupport.ru/showthread.php?t=48954)

Radgam 02-15-2003 07:51 PM

vbusers + htaccess
 
I'm sure i read something a whole ago that allows you to protect a web folder combining htacess and your vbulletin database.
Anyone know what i'm on about? :)

filburt1 02-15-2003 08:15 PM

<a href="https://vborg.vbsupport.ru/showthread.php?s=&threadid=34690&highlight=modauth mysql" target="_blank">https://vborg.vbsupport.ru/showt...t=modauthmysql</a>

Dominick 02-15-2003 08:15 PM

you dont need to combine .htaccess and your vBulletin

http://www.javascriptkit.com/howto/htaccess3.shtml

http://www.euronet.nl/~arnow/htpasswd/

read the first link
then use the second tool to help you create the htpasswd file

Dominick 02-15-2003 08:16 PM

Quote:

Originally posted by filburt1
https://vborg.vbsupport.ru/showthrea...t=modauthmysql
hrm

interesting

Radgam 02-15-2003 08:40 PM

I was hopinh to combine the two so i create a 'forum members only' section of my website so active members get acess to MP3s etc. Exclusive content in short :)

Dominick 02-15-2003 09:27 PM

do you want to protect your files? forums? folders?

forums is obviously the easiest from a vB standpoint
folders if they are just for "exclusive content are simple as well. .htaccess
files you might have to get creative. you might want to create a usr group assuming that you use linux, limit access to 750 and assign group ownership a new group. you could then write a server side script that runs in conjunction with that usergroup that you created. password protect that page and you should be good to go. as far as direct integration with vBulletin. Not sure if that is possible without some serious hacks. but it is a start

oh btw, these are legal mp3's right?
:)

Radgam 02-15-2003 09:31 PM

Yeah, they are legal. It's just a small collection of exclusive files for my members. Few pictures, few MP3s, and a couple of downloads like screensavers :)

So, anyway can read the forum... and members who post a lot will then be able to acess a members section of the website :)

Dominick 02-15-2003 10:27 PM

I think that you are making this harder than it needs to be
http://www.zend.com/codex.php?id=228&single=1

use that to create a login using cookies on the page... create a folder that is password
Code:

RewriteEngine on
RewriteCond %{HTTP_COOKIE} !^.*access=granted.*$
RewriteRule .*$

http://www.yourdomain.com/loginerr.htm


this code should allow access to the folder if the cookie is set...
http://www.webpimps.com/scripts/htaccess/
taken from this page

then you are good to go
just link to your downloads

edit changed zend link to show auth script with cookie setting enabled

JohnBee 11-15-2004 10:17 PM

Could you please clarify the steps and code?

I would really like to add .htaccess cookie auth. protected dirs to
my vBB site.

I have been searching for a good way to add dir. protection to my
website using vB user database, could this work?

Thanks in advance

Barrikin 11-15-2004 11:10 PM

Umm.

Usergroup.
Promotions.

Done.


All times are GMT. The time now is 08:55 PM.

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.01879 seconds
  • Memory Usage 1,727KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete