logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: 403 in IE9 and Chrome but not in other browsers
Author
zorori



Joined: 01 Jun 2011
Posts: 2

PostPosted: Wed 01 Jun '11 10:08    Post subject: 403 in IE9 and Chrome but not in other browsers Reply with quote

Hello,

I have a script in my docroot I want to deny access from outside the local network, so i added a location for it to apache config like this:

Code:
<VirtualHost *:80>
   ServerAdmin webmaster@localhost

   DocumentRoot /var/www/
   <Directory />
      Options FollowSymLinks
      AllowOverride None
   </Directory>

   <Directory /var/www/>
      DirectoryIndex index.php
      Options Indexes FollowSymLinks MultiViews
      AllowOverride None
      Order allow,deny
      allow from all
   </Directory>

   <Location /mysecretscript.php>
      Order deny,allow
      deny from all
      allow from 192.168.1 127.0.0.1
   </Location>
</VirtualHost>


And it works as expected for almost all browsers i tested (Opera, Firefox, IE6...) but in IE9 and Chrome it gives a 403 error even if browsed from inside local network.
I am at a loss here, so any help or suggestions appreciated. The only thing I could think of is IE9 can somehow obfuscate it's IP address, but this theory doesn't seem too feasible for me Rolling Eyes

Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch
Back to top
bentogoa



Joined: 09 Feb 2007
Posts: 66
Location: GOA

PostPosted: Wed 01 Jun '11 14:47    Post subject: Reply with quote

Make sure you are not using a proxy, in internet connection settings, Both IE & Chrome use IE connection manager, while firefox and others have their own.
Back to top
zorori



Joined: 01 Jun 2011
Posts: 2

PostPosted: Thu 02 Jun '11 14:29    Post subject: Reply with quote

Your a genius! That's exactly what happened. Thanks Mr. Green
Back to top


Reply to topic   Topic: 403 in IE9 and Chrome but not in other browsers View previous topic :: View next topic
Post new topic   Forum Index -> Apache