IP filter for xampp

Problems with the Windows version of XAMPP, questions, comments, and anything related.

IP filter for xampp

Postby scwd » 17. February 2010 18:01

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 :)
scwd
 
Posts: 6
Joined: 17. February 2010 17:49
Location: Ciampino, Rome, Italy, Europe, World, Solar System

Re: IP filter for xampp

Postby Wiedmann » 17. February 2010 19:01

Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: IP filter for xampp

Postby scwd » 18. February 2010 15:56

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 :)
scwd
 
Posts: 6
Joined: 17. February 2010 17:49
Location: Ciampino, Rome, Italy, Europe, World, Solar System

Re: IP filter for xampp

Postby Wiedmann » 18. February 2010 17:02

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.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: IP filter for xampp

Postby scwd » 18. February 2010 17:46

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 :)
scwd
 
Posts: 6
Joined: 17. February 2010 17:49
Location: Ciampino, Rome, Italy, Europe, World, Solar System

Re: IP filter for xampp

Postby Wiedmann » 18. February 2010 18:25

But everytime i had the 500 error page...

Read the "error.log".
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: IP filter for xampp

Postby scwd » 19. February 2010 12:22

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... :)
scwd
 
Posts: 6
Joined: 17. February 2010 17:49
Location: Ciampino, Rome, Italy, Europe, World, Solar System

Re: IP filter for xampp

Postby scwd » 23. February 2010 07:36

so...nobody knows the problem? :(
scwd
 
Posts: 6
Joined: 17. February 2010 17:49
Location: Ciampino, Rome, Italy, Europe, World, Solar System

Re: IP filter for xampp

Postby Altrea » 23. February 2010 08:07

Do you have set an AllowOverride in your DirectoryIndex Section for this path?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: IP filter for xampp

Postby scwd » 01. March 2010 09:02

Thanks for reply..i will check... now i'm so busy.. thanks again..
scwd
 
Posts: 6
Joined: 17. February 2010 17:49
Location: Ciampino, Rome, Italy, Europe, World, Solar System


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 142 guests