Blocking Directory Access

The client I'm working for has an internal website and an external website. They would like to combine the two into a single website. Basically, we own an IP domain and any requests to the site from an internal source will be made by a client with said domain. So I would like some content on the pages and some directories to block access if the requester does not have the correct ip.

They're running Windows Server 2K3 with ASP enabled. Now, I've already done something like this with php and .htaccess (basically I block any page content with php and block directory access, listing etc with .htaccess) but I'm really not sure how to go about it with this Microsoft stuff.

View Replies


ADVERTISEMENT

Blocking Access To A Page

I have a form on an .html page that I have a visitor submit the results from which redirects to an ASP script. The problem is the visitors are viewing the source of the page and going directly to the .asp file instead of filling out the form.

I'm trying to use the following script so the page can only be accessed if the user is sent from the form. If they try to access it directly, it will send them back to the page with the form. Here is what I'm using, but it keeps blocking access to the page wheter the form is filled out, or access directly:

If Request.Form("email") <> "Yes" Then
Response.Redirect "http://www.domain.com/form.asp"
End If

View Replies View Related

Access Active Directory

I'm working on a ASP web application which need to use Active Directory as uthentication method. I wonder if I can get some help from you, things like some sample component in VB or some window APIs i can call from asp pageand how to use it to get the username and password info .

View Replies View Related

Access Virtual Directory

I've got a scenario with a web application where I must access the virtual directory being accessed from within the Application_OnStart event handler. Specifically, I
have a series of IIS virtual directories which all point to the same set of ASP pages. However, since each virtual directory is a separate 'application', each has its own
set data which must be cached.

To detect which data must be cached for each virtual directory, I need to detect the name of the virtual directoy being invoked from within the Application_OnStart event.
The problem is that the Request.ServerVariables collection is not avaiable within the Application_OnStart event handler. Is there a workaround for this?

View Replies View Related

Active Directory :: General Access Denied Error

I'm trying to add a user to active directory using ASP and am receiving the
following error:-

Active Directory (0x80070005)
General Access Denied Error

Does anyone know how to get round this problem?

View Replies View Related

Blocking Countries

On my site holypal.com got about 100 ips of users from nigeria spamming, the coder installed a ban ip feature and I banned them one by one manually through admin panel, but then more are coming. Most of my members are from the us, also banning/blocking ips daily is a hassle as it goes to the mssql database and is blcoked from there, how to block all countries like nigeria and ivory coast at once.
oh my site is using easycgi windows host, so I can not configure the server. so I didn't know if I can use .htaccess ?

View Replies View Related

Blocking Mac Address

we have a intranet project that we intend to develope ,basicly we like to prevent the users to logins with the same username to the system multiple times , now i really don't know what would be the best methods to control the users ( sessions , coockie , mac adderess ) , so i was thinking to open a mac address column inside the users table and limite the user by mac address machine ?

View Replies View Related

IP Blocking With IIS6

Is there a way to block an IP from entering a website on IIS? I do not have MOD-Rewrite and I have been told not to do this wih a PHP script. IS there a way in IIS?

View Replies View Related

Blocking The Refresh Button

Does anyone know of a way to disallow a user to refresh a certain page? I ask because I have a page that duplicates itself when it is refreshed and would prefer to not allow the user to refresh at all.

View Replies View Related

Blocking Referring Sites In ASP

How do I block referring sites in ASP using VBScript?Like blocking referrer's from:

192.025.215.001
and
altavista.com

View Replies View Related

Blocking Download The Database

when we type the path of the access database on the address bar it will be downloaded, how can we block that .

View Replies View Related

Blocking CDONTS/CDOSYS Mail

I run a web site that uses various forms to send email to customers. For example, I have a "Forgot your password?" script and a "Email this page" script.I've found out that when a user sends an email via my site to a Hotmail address, the email just "disappears." I'm assuming Hotmail is considering the email SPAM because it was send by my web server? The site uses ASP and I've tried using CDONTS and CDOSYS (which I specified a SMTP server for) and nothing seems to work for Hotmail.

A large portion of my customers user Hotmail, so banning it really isn't an option.Is there anything I can do to prevent Hotmail from blocking my site's emails?

View Replies View Related

Active Directory :: The Attribute Syntax Specified To The Directory Service Is Invalid

I have written a script to update user information in the Active Directory using ADSI. Here is part of it:

Set User = GetObject("LDAP://<GUID=" & GUID & ">")

User.Department = DepartmentName

User.SetInfo

Set User = Nothing

This works fine unless DepartmentName is an empty string ("").

Then I get error 0x8007200B: "The attribute syntax specified to the directory service is invalid."
This happens with all the attributes I have tried, including TelephoneNumber
.
Do I need to delete the value of the attribute instead of setting it to an empty string? If so, how do I do it?

View Replies View Related

Directory

im brand new to ASP and all but at school they want a webpage and they wont support PHP which is what i know so i need to figure out how to show everything under a directory then if sub folders have them link to that folder

View Replies View Related

Outside Of Web Directory

I would like to do something like this:
<!--#include file="C:dbutilsdbConfig.asp"-->

Where the directory C:dbutils is OUTSIDE of the web directory and not
accessible by a client web browser.
The reason I would like to do this is in case somehow ASP processing
gets turned off in IIS. Since "dbConfig.asp" contains a
username/password for the database, I don't want this file to somehow
get sent back to a client browser as plain text.
Two questions:
1) is it possible to use an include file that is outside of the web
directory?
2) is there even any way that ASP processing can be turned off?
perhaps not explicitly, but maybe via malicious code or virus?

View Replies View Related

Directory To Pdf

Does anyone know if it's possible to convert files to .pdf format through ASP? or better yet, does anyone know of a utility that can take a directory of word documents and form one pdf file with the contents?

View Replies View Related

ASP Directory

I've been playing with the script at http://www.asp101.com/samples/dir_list.asp

What I want to know is if the script can be changed to 'read' from the dir it 'loads' from..

So I can just put the script is heaps of folders without having to edit the 'strPath' for each.

View Replies View Related

IIS 6 And Virtual Directory

I have an Intranet site sitting on an Windows XP server, which has IIS 6.0 installed. This Intranet site contains a virtual directory (VD), which sits on a second server and has Windows 2000 installed.

To test how a virtual directory would work for this particular Intranet site, I had previously set up the VD on the web server. Everything worked well...no errors.

Once testing was complete and the location of the VD changed to the second server, I have been receiving the following error:

Microsoft VBScript runtime error '800a004c'
Path not found

I understand what this error is saying, but I was wondering if anyone knows of any problems between IIS 6 being on a XP server and the VD on a 2000 server and any possible implications.

View Replies View Related

Get All Filenames From A Directory?

Is it possible to read the all filenames from a directory? Basically I want to grab all the filenames from a directory and make a flat file with all the values in it.

View Replies View Related

Trying To Browse A Directory

I'm trying to create my own browsing window for a directory on my webserver. I can access the root the directory and the first sub-directory but anything lower than that I get "path not found". I'm almost sure the problem is attaching the selected directories names on to the objFSO.GetFolder line.

I used the Mid function to get my selected directories. I can't figure out how to add the selected directories to the objFSO.GetFolder line. Code:

View Replies View Related

Protect Directory

I'm trying to protect a directory from users not logged in.
Let say i'm trying to protect a direcory called files.

I only want the user to acces the files when they've logged in.

http://www.sitename.com/files/filename.doc

Even though they know the name and path i want to prevent people from downloading the files.

I don't want the user to be able to send out the link to another friend without logging in.

Is this possible i'm using a wiindows server.

View Replies View Related

Queue Directory

I am using CDONTS with winnt and all the sent emails are sitting in the QUEUE directory in c:inetputmailroot.

View Replies View Related

ASP Active Directory

I'm trying to connect to the active directory using asp. I'm having problems with logging in, what happens is the username accepted is not the user logon name but the displayname is accpeted heres the code:

View Replies View Related

ASP & Active Directory

Could anyone show me a sample, snippet, code chunk ... etc of how I can get ASP to find the Active Directory username based on a supplied email address?

For example: I want ASP to query active directory and retrieve the AD username for where user email address = 'whatever@whatever.com'

View Replies View Related

Directory Trick?

Not sure how to address this, but...

Obviously in the SEO world, this:

http://domain.com/my-article-name

Is better than:

http://domain.com/article.asp?articleid=67

Here's the challenge though: How do you get your dynamic pages to appear as a directory rather than an asp page with a querystring? I'm fairly certain that there is a workaround to this to be able to have one dynamic asp script that appears in your address bar as a directory.

View Replies View Related

Virtual Directory

Is there a way in asp to create a new default web site within IIS
I am setting a content managament system and want to create a new default web site during on of the processes.
So for example if people create a new site within the admin section and call it Jacinto this will create a new virtual directory called Jacinto.

This would then be accessed at http://localhost/jacinto

View Replies View Related

Virtual Directory

Here are a couple of links that describe how to create a virtual directory programmatically on IIS.

http://support.microsoft.com/defaul...kb;EN-US;188954

http://www.vbrad.com/pf.asp?p=sourc...ate_iis_dir.htm

I haven't had a close look at the code yet but it's not in asp/vbscript

Has anybody done it in pure asp.I would like to do it on a site hosted by a third party and I am unable to install any dll's or exe's on the machine because it is a shared webserver.Both .NET and Non .NET would be good

View Replies View Related

Virtual Directory

I have a virtual directory set up and it's fine. Now what I want to do is write files into them. When I try to do that it gives me a "path not found" error.How can I do this? Is this even possible?

View Replies View Related

IIS Virtual Directory

I want to write a web hosting application. But how to create a IIS virtual
directory programmatically in ASP page?

View Replies View Related

Directory On Unix

Is there a way to create directories using vb or jscript in IIS to a unix machine? I want to have the aility to upload files through my Win2k Web Server, and have those files stored on my Mac OS X Server under new directories based on date and Upload ID's from the Db.

View Replies View Related

PHP Scripts To Run In Another Directory With IIS

I would like to have PHP for windows run in another directory than
c:inetpubwwwroot. I have tride changeing parameters in php.ini in my
c:php directory. But nothing changes. When I run the phpinfo() I always get
Configuration File (php.ini) Path as c:windows. But I do not have the
php.ini file there. Is there something I am doing wrong or is it a bug.

I tried renameing the php.ini file and reseting the IIS and believe it or
not my scripts still work in c:inetpubwwwroot.

View Replies View Related

Keep Database In C: Directory

Is it possible to keep my database file (access db) in local pc (C drive)? I have created all the page with asp, the reason is that I cannot set the server path to write on the database if it's save under server.

I am only running all this file in one pc. how can I change below statement if I want the db file save in the local c:...Tks

<%Dim DBPath, connstring, conn
DBPath = "score.mdb"
connstring = "PROVIDER=Microsoft.Jet.OLEDB.4.0; DATA SOURCE=" & server.mappath(DBPath) & ";" & "Jet OLEDBatabase Password=welcome"
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open connstring
%>

View Replies View Related

Path Name Of FTP Directory.

I'm trying to find out the entire path for the directory on the web server that I use for FTP'ing.

I had an ASP script which did it for me once before but I've lost it. Does anyone know how to retrieve the full path name?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved