![]() |
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. |
Is it possible to apply this hack for some (specyfied by me) users ?
(only mods & admin for example) |
how can i make this hack possible but then without the ipcheck?
and if not, where can i put the valid ips in who can enter? do i have to put for every member the ip in? cant figure it really out. |
can someone explain if there is no other way to avoid the ip check how to handle this ip check? how do i control this? you have to put all the ip's in there of all members? i just cant understand this.
|
[QUOTE=InnerSelf]how can i make this hack possible but then without the ipcheck?QUOTE]
Yeah, I am looking for a working version without ip check! Can someone help us please ? Many thanks |
Quote:
|
Here's the version without IPmasks:
Open global.php and look for this line: PHP Code:
PHP Code:
This will put a HTaccess popup box on all your regular forum pages. As for the admincp/modcp, it might be easier to just change the location of those to something else (can be edited in the /includes/config.php). Make sure you don't have any extra .htaccess files with an additional htaccess/htpasswd, else it's gonna get messy ;) |
Can you confirm that the above post is all you need to add for this to work ? none of the extra code from the first post of this thread ?
|
Yes I can confirm ;)
The extra code in the first post was all needed for the IP field. (which is no default field in VBB and hence u have to alter the DB) Drop that requirement, and the whole snippet gets quite short. |
Excellent - many thinks: I can see an excellent use for this.
|
nice hack, it's possible that the user logged in when they autenticate with this method?
what we have now is: username:password when open the side (http auth) then login to forum again it's possible: username:password when open the side (http auth) then autologin into forum u can use the autologin on forum, but it's not good if more then 1 users share the same workstation. so, is it possible with autologin with http auth? |
i tried by myself, no result's at the moment... so anybody else will have a look for it?
|
anyone would be nice if it auto log into forum also
|
You know what would be nice? A hack that checks the 1st IP # of the visiting user (Ex: 233.x.x.x) against the registration ip on file in the User database. This would require no inputing of data on the admins part. If it doesn't match, it kicks them out.
|
Quote:
im sorry for not supporting this thread my linicence removed but its back now ok so about the qoute , what if user changes his compeny ? or user have diff ip masks for exsample in israel netvision got something like 4 diff ip masks Quote:
note : dont use get methood cuse then you will have a major security problem :o but if you want i think i can make your life bit more easy and do it for you |
you can also use hostmasks... like if the users hostmask ends with aol.com, you can also type this in the ipmasks field...
|
any more support for this thread?
|
I hope so.
I also have another question about it. Suppose I had installed it partially (just added the ipmasks field), and I wanted to autofill this with the ip-information from the post table. Such a thing would take time... so I figure a script to do this would be nice also. |
I placed TripLcixx's code in the global.php file... I get the authentication box, but it will not accept any username/password combination, any suggestions would be greatly appreciated.
Also, Anything new with being able to auto-login? That would be great, but is a little above my head to develope right now. Thanks |
can I use this hack to password protect a any individual directory within my forum for example: forums/songs ?
|
How do I redirect users instead of showing them the standard "Authentication Failed" message? (I'm using the shorter version of TripLcixx)?
Thanks! |
To make users redirect after failed logins, put the following in
echo "":; PHP Code:
|
However, how do I disable banned users (usergroup) from accessing?
|
Quote:
So how can I get this with the redirect to work with 3.5.3 ??? really need this |
If anyone wonders how to refrain banned users from accessing (bypassing the http auth), change their password. Now they're banned from http auth and the board itself.
Simple but effective. |
All times are GMT. The time now is 04:46 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|