c# - open a webpage on specific computers even internet is active on computer -
i have webpage company user name password protected. want open webpage on specific computers allow, net active on computer.i using asp.net 4.0
c#
. there 1 help me can allow specific computers open webpage otherwise generate error. anyone help plz !
create whitelist of ip of allowed computer.
in global.asax match ip ip in list.
if ip not in list redirect error page else continue.
for above method ip need static. if not possible follow method. create page in website loggingin...
give url users/computer want activate.
when authentication occurs , successfull write cookie.
delete newly created page.
again in global.asax search cookie value .
if value found ok else redirect error page.
you must set cookie value 180 days dont need reactivate 2nd login page.
however if possible utilize 1st method only.
c# asp.net c#-4.0
No comments:
Post a Comment