SunQuest
 
           .NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old June 15th, 2001, 02:19 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
How do I send back "hackers" ?

<i><b>Originally posted by : agamemnon (agamemnon@hotsheet.com)</b></i><br />I've made a logon page that (if OK) sends you to the members page, but if someone types the address of the members page can get there bypassing the logon.<br />How can I test that the one that got to the members page came from the logon page ?<br /><br />Can someone help me? Thank you.<br />

Reply With Quote
  #2  
Old June 15th, 2001, 04:30 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : Demosthenes (Clark@Powernet.net)</b></i><br />The solution is easy. In your Member LogIn Form, insert this:<br /><br /><INPUT TYPE="Hidden" NAME="AccessGranted" VALUE="1"><br /><br />Now, on your "members only" page, at the top, add this:<br /><br /><% IF Request.Form("AccessGranted") = 1 THEN<br />(The rest of the Member Page code here)<br />ELSE<br />(Code to send them back to the main page, or simply put the login code here again)<br />END IF %><br /><br />What this does: When the Member's Only page is accessed, it checks to see if they used the Login form. If they did, it will get the Variable "AccessGranted" returned as 1, and all the user to proceed. If the value is not returned, then the user obviously did not use the login form and will in turn be sent back to the main page, or be given another Login form.<br /><br />I hope I made that simple to understand... if you have problems, contact me at Clark@Powernet.net.<br /><br />Demosthenes<br /><br />------------<br />agamemnon at 6/15/2001 12:19:55 AM<br /><br />I've made a logon page that (if OK) sends you to the members page, but if someone types the address of the members page can get there bypassing the logon.<br />How can I test that the one that got to the members page came from the logon page ?<br /><br />Can someone help me? Thank you.<br />

Reply With Quote
  #3  
Old June 17th, 2001, 08:14 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : Heino Lenting (HeinoLenting@Hotmail.com)</b></i><br />This solution is to easy. It's not safe! If a hacker make an easy form with only AccessGranted Value = 1 he can enter your "Members only" page!<br /><br />See you later,<br /><br />HeinoLenting@Hotmail.com<br /><br /><br /><br />------------<br />Demosthenes at 6/15/2001 2:30:26 AM<br /><br />The solution is easy. In your Member LogIn Form, insert this:<br /><br /><INPUT TYPE="Hidden" NAME="AccessGranted" VALUE="1"><br /><br />Now, on your "members only" page, at the top, add this:<br /><br /><% IF Request.Form("AccessGranted") = 1 THEN<br />(The rest of the Member Page code here)<br />ELSE<br />(Code to send them back to the main page, or simply put the login code here again)<br />END IF %><br /><br />What this does: When the Member's Only page is accessed, it checks to see if they used the Login form. If they did, it will get the Variable "AccessGranted" returned as 1, and all the user to proceed. If the value is not returned, then the user obviously did not use the login form and will in turn be sent back to the main page, or be given another Login form.<br /><br />I hope I made that simple to understand... if you have problems, contact me at Clark@Powernet.net.<br /><br />Demosthenes<br /><br />------------<br />agamemnon at 6/15/2001 12:19:55 AM<br /><br />I've made a logon page that (if OK) sends you to the members page, but if someone types the address of the members page can get there bypassing the logon.<br />How can I test that the one that got to the members page came from the logon page ?<br /><br />Can someone help me? Thank you.<br />

Reply With Quote
  #4  
Old June 19th, 2001, 01:24 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : agamemnon</b></i><br />Thank you both, but Heino is right.<br />That's not a safe way.<br />I think I got it with the session object and includes to every page in the members area.<br /><br />(CHECK USER PAGE)<br />If (Request.Form("Password")) = strOK then<br /> Session("UserOK") = True<br />Else<br /> Session("UserOK") = False<br /><br />(MEMBERS AREA)<br />If Session("UserOK") = False then<br /> Response.Redirect"getoutofhere.htm"<br /><br />It seems to work.<br /><br /><br /><br />------------<br />Heino Lenting at 6/17/2001 6:14:04 AM<br /><br />This solution is to easy. It's not safe! If a hacker make an easy form with only AccessGranted Value = 1 he can enter your "Members only" page!<br /><br />See you later,<br /><br />HeinoLenting@Hotmail.com<br /><br /><br /><br />------------<br />Demosthenes at 6/15/2001 2:30:26 AM<br /><br />The solution is easy. In your Member LogIn Form, insert this:<br /><br /><INPUT TYPE="Hidden" NAME="AccessGranted" VALUE="1"><br /><br />Now, on your "members only" page, at the top, add this:<br /><br /><% IF Request.Form("AccessGranted") = 1 THEN<br />(The rest of the Member Page code here)<br />ELSE<br />(Code to send them back to the main page, or simply put the login code here again)<br />END IF %><br /><br />What this does: When the Member's Only page is accessed, it checks to see if they used the Login form. If they did, it will get the Variable "AccessGranted" returned as 1, and all the user to proceed. If the value is not returned, then the user obviously did not use the login form and will in turn be sent back to the main page, or be given another Login form.<br /><br />I hope I made that simple to understand... if you have problems, contact me at Clark@Powernet.net.<br /><br />Demosthenes<br /><br />------------<br />agamemnon at 6/15/2001 12:19:55 AM<br /><br />I've made a logon page that (if OK) sends you to the members page, but if someone types the address of the members page can get there bypassing the logon.<br />How can I test that the one that got to the members page came from the logon page ?<br /><br />Can someone help me? Thank you.<br />

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > How do I send back "hackers" ?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway