944,066 Members | Top Members by Rank

Ad:
Apr 20th, 2006
0

URL Hacking

Expand Post »
Hi everyone,

Can anyone tell me how you can stop users from URL Hacking your website?
So for example if you have a password and username form on the front of your website and only want authorised members to gain access to your web site.

So for example just say you had a page e.g: somepage.htm and a user who was not logged in types www.somesite.com/somepage.htm. How can you stop them from getting access to the that page if they are not logged in?

P.S: Do you have any sample code?

Please help,

Jay.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
JC_2000 is offline Offline
17 posts
since Oct 2005
Apr 20th, 2006
0

Re: URL Hacking

Sorry forgot to mention, I wanted to know how this is done in ASP
Reputation Points: 10
Solved Threads: 0
Newbie Poster
JC_2000 is offline Offline
17 posts
since Oct 2005
Apr 21st, 2006
0

Re: URL Hacking

Post in the ASP forum. There's nothing you can do with HTML or client-side script.
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004
Apr 21st, 2006
0

Re: URL Hacking

what do you mean can i ask?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
JC_2000 is offline Offline
17 posts
since Oct 2005
Apr 21st, 2006
0

Re: URL Hacking

I mean, if you're asking a question about ASP, then you need to ask your question in the ASP forum:

http://www.daniweb.com/techtalkforums/forum62.html

There is no way to secure a website using only client-side code, which is the focus of this forum.
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004
Apr 22nd, 2006
0

Re: URL Hacking

I agree you need to ask this at your language's area, but just so you know I wouldn't consider your scenario URL Hacking, since visitors are not doing anything wrong but requesting a public page.

It is your responsability as a developer to make sure pages that need to be secure ARE NOT AVAILABLE PUBLICLY (to begin with). For the most part, the best approach is using sessions and bounce off to the entry page any user that has not started a session with a password.

As the next step, security is a problem even when your URLs are not public anymore. A real hack attempt is about someone trying to get access to pages that you have already secured. To protect yourself from such attacks there are special considerations you need to keep in mind, such as sanitazing any and all user input.
Reputation Points: 14
Solved Threads: 1
Junior Poster in Training
Esopo is offline Offline
50 posts
since Feb 2006
Apr 22nd, 2006
0

Re: URL Hacking

BTW, just so it's out there,

You can secure areas of your site through server configuration without having to deal with programming, but since you already have ASP in mind I would suggest you use that since it gives you more control.
Reputation Points: 14
Solved Threads: 1
Junior Poster in Training
Esopo is offline Offline
50 posts
since Feb 2006
Apr 22nd, 2006
0

Re: URL Hacking

No probs guys will move this topic to the ASP forum.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
JC_2000 is offline Offline
17 posts
since Oct 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: help with a tag
Next Thread in HTML and CSS Forum Timeline: Adding a interactive CD to html based site, creating user PW etc..........





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC