![]() |
HTTP Authentication by User / pass / ip ranges
ok , this is the first hack i post around here so i hope im doing it ok
if not mods please fix me :P ok, this hack is ment for closed comunity of vbulltien forums that want exstra security against unwelcome guests this hack adds HTTP Authentication which change acording to username / password to make the security bit higher i added ip ranges part - mean every users got ip range and if his ip is not wellcome then its not let him in (can help abit against shared account). ok so lets start // run this db query PHP Code:
find : PHP Code:
PHP Code:
ok, now u got 2 options : option1 - put it only in root dir option2 - put itin root and on admincp/modcp dir ok if option 1 then // open root/global.php find : PHP Code:
PHP Code:
now if u want option 2 then : open includes/init.php find : PHP Code:
PHP Code:
*WARNING - IN ANY WAY DONT USE BOTH OPTIONS its will cuse to the page ask for several time the user/pass and its will be very buggy. note : if user got dynamic ips for exsample : 143.229.64.58 143.229.78.99 145.88.45.68 just add it like that 143.229 145.88 with 1 space between each ip range dont user * as wildcard. thats all :P if u got some qustions or anything , then im here to suport u guys. Sorry for my very bad english. |
cant believe mist this - will give it a test if it stops people sharing ips :)
cheers Edit - if i add this how will members know the httaccess - will it auto be their username and password from the forums ? |
for exsample your usename is test and password is mytest
so htaxx user is test and htaxx password is mytest btw its auto login u to forums so u wont be needed to login again in vbb script |
Euhm, this only works when someone actually enters the forums right?
Cause atm i have a .htaccess in the root of my forums dir to protect the root and all subdirs. It only uses 1 fixed login user/pass. I would like to have that one use the database user:pass info for each member. Any way to make that file check the user:pass info by using the database instead of the htaxx .passwd file? |
this is the hack i made
htaxx by user/pass to make it work remove your .htacces file |
so if i dont include all the
Code:
ALTER TABLE user ADD ipmasks varchar(250) NOT NULL default ''; if so this is alot simpler than the one in beta forums :D :P works sweet thnx |
yes
if u do remove it then its can work with out the ips i can write this for u if u wish.. |
@miz
you can a hack post only with user/pass what works without ip PHP Code:
what's wrong :devious: |
Is there an option to disable IP restriction for certain members ? Shall I try not putting anything in the IP Masks textbox ?
|
Don't get this to work.....
It pops up the httpacces box were you fill in you're user/pass but it comes back, don't think it will check the database for user and pass... CAn anyone help me on this please... S. |
All times are GMT. The time now is 05:57 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|