• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 194
  • Last Modified:

Web File Access

hello,
I want to create something so that when someone tries to go to
domain.com/cgi-bin/admin/
domain.com/cgi-bin/admin/login.cgi
domain.com/cgi-bin/admin/help.cgi
etc..
it tells them you dont have accress to this section..
only to my IP address. how can I do that?
0
aplelois
Asked:
aplelois
  • 2
1 Solution
 
Samer ChidiacChief Innovation & Strategy OfficerCommented:
Some hosting companies provides Secure URLs that will display a Windows Authentication Login Box.. which is VERY Secure ... this is the fasted and most reliable one if you dont want to use a specific Programming Language such as asp or asp.net


you can use http://www.hostonce.com if you like to receive this option ..

Cheers,
SC

-------------------------
Samer Chidiac
Microsoft MVP - ASP/ASP.net
0
 
Samer ChidiacChief Innovation & Strategy OfficerCommented:
another thing .. if you want to limit to your IP ... you will have to use Programming to do so .. and this has to be done in each page .. or if you used ASP.net 2.0 using the Security Model there.

Cheers,
SC
0
 
ClickCentricCommented:
Actually, that may or may not be true depending on the type of webserver.  Apache can achieve this via the site config, or in many situations, the .htaccess file.  If it's apache, create a .htaccess file in the /cgi-bin/admin/ directory.  This file will literally be called (in most situations) .htaccess and the (.) in the filename is necessary and should be the first character.  In the file, put:

order deny, allow
deny from all
allow from xxx.xxx.xxx.xxx


Replace xxx.xxx.xxx.xxx with your IP address with your IP address and you should then only be able to access that directory from your IP.

You can also edit the httpd.conf file and do the same there, though the format's a bit different.  Check out:

http://httpd.apache.org/docs/2.0/configuring.html

for more information.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now