![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
Join Date: Mar 2005
Posts: 139
Rep Power: 4
![]() |
Hello all,
I'm looking to restrict access to various pages of my website. I have curently an app in place which queries a database for the credientials (user + password) entered and sets a flag to true if a match was found. I heard about comparing the HTTP_REFERER header to the HTTP_HOST header, but heard it is useless because soem browsers dont support those headers and hackers can mess with them easily, do you have any sugestions? Thanks |
|
|
|
|
|
#2 |
|
Hobbyist Programmer
|
You don't need to pass session data through the browser. Keep it on the server with the session object. If you really worried about it check browser and IP every time a page is accessed.
|
|
|
|
|
|
#3 |
|
Hobbyist Programmer
Join Date: Mar 2005
Posts: 139
Rep Power: 4
![]() |
Thanks for your reply
What do you mean by " Keep it on the server with the session object"--> could you show me an example pls...thanks this is what i am doing now see attached, it wont let me upload a .asp or .inc file)Validate is the main validation page that checks u at login and val1 is the include file i use on each page to check if you logged in Thanks |
|
|
|
|
|
#4 |
|
Hobbyist Programmer
|
Your already useing it in your validate.txt file.
session("flag")=trueThat is stored on the server is memory recalls. I believe there is no way for anyone to pull that off the server. |
|
|
|
|
|
#5 |
|
Expert Programmer
Join Date: May 2005
Location: East Lansing, MI
Posts: 647
Rep Power: 4
![]() |
As far as i know, restricting access to parts of a website is the job of the web server. I'm not sure how to do that in IIS but if you're using apache, you can specify the directories that have restricted access.
|
|
|
|
|
|
#6 |
|
Hobbyist Programmer
Join Date: Mar 2005
Posts: 139
Rep Power: 4
![]() |
Oh ic, you mentioned checking ip's how would i go about that? And how do I componsate for dynamic (DHCP) ip's
|
|
|
|
|
|
#7 |
|
Professional Programmer
Join Date: Jun 2005
Location: India, The great.
Posts: 435
Rep Power: 3
![]() |
I checked your Username/password validation script. It can be easily cracked in 1 min(and no thinking) using SQL injection. google SQL injection for more info about the attack.
__________________
PFO - My daily dose of technology. |
|
|
|
|
|
#8 | |
|
Hobbyist Programmer
|
Quote:
Session("File") = "95862983.txt" |
|
|
|
|
|
|
#9 |
|
Hobbyist Programmer
Join Date: Mar 2005
Posts: 139
Rep Power: 4
![]() |
Thanks for the reply
1) what do you mean by "offline temp folder." if its not on my server (this will eventually be uploaded to a server other then my IIS which i have limited control over) how will i reference it 2) To info geek: Thanks for the tip, how can i make it more secure ? 3) How can I protect my Access database so that it cannot be downloaded by going for example www.mydomain.com/mydatabase thanks for all the help |
|
|
|
|
|
#10 | ||
|
Professional Programmer
Join Date: Jun 2005
Location: India, The great.
Posts: 435
Rep Power: 3
![]() |
Quote:
Quote:
__________________
PFO - My daily dose of technology. |
||
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|