Page 1 of 1

IP filter for xampp

PostPosted: 17. February 2010 18:01
by scwd
Hi to all, i'm new for the community and i'm using xampp for an internal website of my work place...

I have a question.. i hope there will be a solution...pratically i would set an array of IP addresses who have the permission to access to the internal website... It's a big lan here then i would the access only for some people... simply i don't want put the login at every session but just check the IP address and allow or deny the access to the website...

I didn't found a solution also in the web...

Thanks to all :)

Re: IP filter for xampp

PostPosted: 17. February 2010 19:01
by Wiedmann

Re: IP filter for xampp

PostPosted: 18. February 2010 15:56
by scwd
Hi,

first of all thanks for the reply, if i'll have time between some hours i will test all... I would then just ask something.. is possible put this filter plus the login? I mean: i am in a big lan, i need that like 10 IPs can see the website without login, the rest of all with login... This because one of permitted-person could need to see the website in another computer... Then could be nice also the autentication...

p.s. is also possible, if you know, put a mac-address filter?

Thank you :)

Re: IP filter for xampp

PostPosted: 18. February 2010 17:02
by Wiedmann
i need that like 10 IPs can see the website without login, the rest of all with login...

http://httpd.apache.org/docs/2.2/mod/core.html#satisfy

is also possible, if you know, put a mac-address filter?

No.

Re: IP filter for xampp

PostPosted: 18. February 2010 17:46
by scwd
Thanks again for reply... but i have problem... now i will try to do the thing of the double check (check IP and check login)..

I don't know why, i read all, also in other documentation.. maybe i'm stupid :P and it's only a fault of mine...

I modified:
C:\xampp\security\htdocs\.htaccess
C:\xampp\htdocs\xampp\.htaccess


In the beginning were both:
AuthName "xampp user"
AuthType Basic
AuthUserFile "C:\xampp\security\xampp.users"
require valid-user


and now are both:
order allow,deny
deny from all
allow from xxx.xxx.xxx.xxx


But everytime i had the 500 error page...

Could you help me?

Thanks :)

Re: IP filter for xampp

PostPosted: 18. February 2010 18:25
by Wiedmann
But everytime i had the 500 error page...

Read the "error.log".

Re: IP filter for xampp

PostPosted: 19. February 2010 12:22
by scwd
Hi,

[Thu Feb 18 17:37:53 2010] [alert] [client xxx.xxx.xxx.xxx] C:/xampp/htdocs/xampp/.htaccess: order not allowed here

This is one of the line of the error... but the host is permitted....how's possible?

Thanks... :)

Re: IP filter for xampp

PostPosted: 23. February 2010 07:36
by scwd
so...nobody knows the problem? :(

Re: IP filter for xampp

PostPosted: 23. February 2010 08:07
by Altrea
Do you have set an AllowOverride in your DirectoryIndex Section for this path?

Re: IP filter for xampp

PostPosted: 01. March 2010 09:02
by scwd
Thanks for reply..i will check... now i'm so busy.. thanks again..