.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:
  #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,575 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: 24
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,575 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: 24
<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,575 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: 24
<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,575 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: 24
<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





 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

 

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





© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek