Solved

Blocking with /etc/hosts to 127.0.0.1 - blocked sites ask for authentication!

Posted on 2003-11-10
3
241 Views
Last Modified: 2012-05-04
I run a web server that is open when in the 192.168 range, but requires a password when accessed on the internet.

The setup is Apache 1.27 on Mandrake 9.1

I also run squid and DansGuardian but don't think that they are involved here.

I recently installed a hosts file that blocks some common ad servers.   Whether the servers have 127.0.0.1 or 0.0.0.0 as their IP address, I am asked for authentication as if I am on the internet.  If I click OK I am repreatedly asked for authentication, if cancel I get "denied"

The directives are currently as follows:

order allow,deny
AuthName "Access by invitation only!"
AuthType Basic
AuthUserFile /usr/local/apache/passwd/passwords
require user myuser
#Require valid-user
Satisfy any
Allow from 192.168.1.0/255.255.255.224


All help greatly received.
0
Comment
Question by:thomaswp
  • 2
3 Comments
 
LVL 17

Accepted Solution

by:
Tacobell777 earned 250 total points
ID: 9718614
Have you got Allow Anonymous access disabled?
If so, add the problem ips to your Trusted sites/Intranet sites under Internet Explorer

If this solved it, then the reason is because as soon as there is a dot in a address IE thinks its on the Internet.
0
 
LVL 1

Author Comment

by:thomaswp
ID: 9721495
Not sure about Anonymous Access - I'll check.

I never use IE I am afraid, so don't know about that ...

Thomas
0
 
LVL 1

Author Comment

by:thomaswp
ID: 11089473
I have no idea how I solved it, but the anonymous thing sounds right...
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question