Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > how to know if a request come from internal user (employee) orexternal user (vendor)

Reply
Thread Tools

how to know if a request come from internal user (employee) orexternal user (vendor)

 
 
Chris
Guest
Posts: n/a
 
      03-24-2010
Hi,

I have an extranet site (asp.net), we want that if an employee click
on the link, it will automatically get them in. But if an external
user does it, they will be redirected to a login page.

is it possible? how to know if a request come from internal user
(employee) or external user (vendor).

Thanks

Chris
 
Reply With Quote
 
 
 
 
Harlan Messinger
Guest
Posts: n/a
 
      03-25-2010
Chris wrote:
> Hi,
>
> I have an extranet site (asp.net), we want that if an employee click
> on the link, it will automatically get them in. But if an external
> user does it, they will be redirected to a login page.
>
> is it possible? how to know if a request come from internal user
> (employee) or external user (vendor).


The server has no way to sense the vibes of the person whose
interactions with a computer caused it to send the server a request to
determine his status with respect to the company.

You can find out the *IP address* of the device from which the request
is coming to see if it's an intranet or Internet address. That's

Request.ServerVariables["LOCAL_ADDR"]

But since employees can and probably will access the site from outside
your intranet, and since unauthorized visitors of exactly the sort you
want to keep out of your site can sneak into your office and then gain
access from inside your intranet when no one's looking, this doesn't
really help you.

If you are absolutely certain that no non-employee will EVER access this
site from inside your office, and your employees are content to log in
when they are outside the office, then you may be all right. But if you
care about security, you won't count on it.
 
Reply With Quote
 
 
 
 
Andy O'Neill
Guest
Posts: n/a
 
      03-25-2010

"Chris" <> wrote in message
news:7dc50a6d-6f48-44d7-a96e-...
> Hi,
>
> I have an extranet site (asp.net), we want that if an employee click
> on the link, it will automatically get them in. But if an external
> user does it, they will be redirected to a login page.
>
> is it possible? how to know if a request come from internal user
> (employee) or external user (vendor).
>
> Thanks
>
> Chris

I think you can do that with membership provider, although you'll need to
write some code to extend the provider a bit.
If you set it to use activedirectory then handle those with no (valid)
active directory by making them log in.
I couldn't find a specific example but you should be more motivated in your
googling.
http://msdn.microsoft.com/en-us/library/ms998345.aspx

 
Reply With Quote
 
shusta guthnar
Guest
Posts: n/a
 
      03-26-2010
Chrsi,

One person would be the usual haveing talk to network persons redirect
on class C or internal address. redirected with a javascripting.

Haveing good days

Shusta


On Mar 25, 7:11*am, "Andy O'Neill" <aon14nocannedm...@lycos.co.uk>
wrote:
> "Chris" <chrisv...@gmail.com> wrote in message
>
> news:7dc50a6d-6f48-44d7-a96e-...> Hi,
>
> > I have an extranet site (asp.net), we want that if an employee click
> > on the link, it will automatically get them in. But if an external
> > user does it, they will be redirected to a login page.

>
> > is it possible? how to know if a request come from internal user
> > (employee) or external user (vendor).

>
> > Thanks


>
> > Chris

>
> I think you can do that with membership provider, although you'll need to
> write some code to extend the provider a bit.
> If you set it to use activedirectory then handle those with no (valid)
> active directory by making them log in.
> I couldn't find a specific example but you should be more motivated in your
> googling.http://msdn.microsoft.com/en-us/library/ms998345.aspx


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
I know, I know, I don't know Andries Perl Misc 3 04-23-2004 02:17 AM
internal to internal NAT? Mike Cisco 1 04-21-2004 12:15 PM
Come One, Come All Jess Guim Digital Photography 0 12-02-2003 04:43 PM
Re: Accessing Request.InputStream / Request.BinaryRead *as the request is occuring*: How??? Brian Birtle ASP .Net 2 10-16-2003 02:11 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57