473,397 Members | 1,950 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

post back from saved page on the disk


Hello All,

I would like to prevent users from posting data through the saved page at
their disk.
Like a web page is saved to their c: drive and user opens it , change/remove
validation code and then submit.

This is not about clicking submit buttuon twice.

Any help on this?

Nov 18 '05 #1
8 928
check for HTTP_REFERER server variable.
it wont be available if the form was posted from locally
saved file.
"asp.net User" <as********@discussions.microsoft.com> wrote in message
news:E7**********************************@microsof t.com...

Hello All,

I would like to prevent users from posting data through the saved page at
their disk.
Like a web page is saved to their c: drive and user opens it , change/remove validation code and then submit.

This is not about clicking submit buttuon twice.

Any help on this?

Nov 18 '05 #2

Hi,

It wont be available for first request eighter.

"Anoj kumar" wrote:
check for HTTP_REFERER server variable.
it wont be available if the form was posted from locally
saved file.
"asp.net User" <as********@discussions.microsoft.com> wrote in message
news:E7**********************************@microsof t.com...

Hello All,

I would like to prevent users from posting data through the saved page at
their disk.
Like a web page is saved to their c: drive and user opens it ,

change/remove
validation code and then submit.

This is not about clicking submit buttuon twice.

Any help on this?


Nov 18 '05 #3
On Fri, 13 Aug 2004 12:55:55 +0530, Anoj kumar wrote:
check for HTTP_REFERER server variable.
it wont be available if the form was posted from locally
saved file.
"asp.net User" <as********@discussions.microsoft.com> wrote in message
news:E7**********************************@microsof t.com...

Hello All,

I would like to prevent users from posting data through the saved page at
their disk.
Like a web page is saved to their c: drive and user opens it ,

change/remove
validation code and then submit.

This is not about clicking submit buttuon twice.

Any help on this?


hi,
most firewalls block HTTP_REFERER info so a normal user may not be able to
access your page this way.

If validation is from ASP.NET validation control there is a better way. You
can use Page.Isvalid to perform the validation again in server side.

Could you tell more about your validation code ?

- Oytun YILMAZ
Nov 18 '05 #4
asp.net User wrote:
Hello All,

I would like to prevent users from posting data through the saved
page at their disk.
Like a web page is saved to their c: drive and user opens it ,
change/remove validation code and then submit.

This is not about clicking submit buttuon twice.

Any help on this?


Don't ever rely on client-side validation for web apps. *Always* validate
everything on the server-side again.

Cheers,
--
Joerg Jooss
jo*********@gmx.net

Nov 18 '05 #5
Anoj kumar wrote:
check for HTTP_REFERER server variable.
it wont be available if the form was posted from locally
saved file.


That is unpredictable. It takes just one proxy server and voilą -- you get a
Referer header. Never rely on the Referer header.

Cheers,
--
Joerg Jooss
jo*********@gmx.net
Nov 18 '05 #6

Thanks for reply.

This is not only for validation, "validation" was just an example.

I just want to prevent user from sending data from their saved page.

I am looking for any config setting if available, like for viewstate
ASP.NET has given enableViewStateMac setting.

Thanks

"Joerg Jooss" wrote:
asp.net User wrote:
Hello All,

I would like to prevent users from posting data through the saved
page at their disk.
Like a web page is saved to their c: drive and user opens it ,
change/remove validation code and then submit.

This is not about clicking submit buttuon twice.

Any help on this?


Don't ever rely on client-side validation for web apps. *Always* validate
everything on the server-side again.

Cheers,
--
Joerg Jooss
jo*********@gmx.net

Nov 18 '05 #7
suresh_C# wrote:
Thanks for reply.

This is not only for validation, "validation" was just an example.

I just want to prevent user from sending data from their saved page.

I am looking for any config setting if available, like for viewstate
ASP.NET has given enableViewStateMac setting.


OK -- but what is your motivation to do that? Also, does your application
require authentication or is ti used anonymously?
--
Joerg Jooss
jo*********@gmx.net

Nov 18 '05 #8
Hi
This is not only for validation, "validation" was just an example.


You should always use the real situation when asking a question, otherwise
people will answer the question you asked rather than the question you
meant. :-)
--
Pete
====
Audio compression components, DIB graphics controls, FastStrings
http://www.droopyeyes.com

Read or write articles on just about anything
http://www.HowToDoThings.com
Nov 18 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Robert Oschler | last post by:
I am working on a PHP 4 app that interacts with an external authorization server. The external server does "third-party" authorization of users. So I do the following: 1) Each of my PHP scripts...
0
by: KathyB | last post by:
Hi, I would be grateful for any guidance in how to achieve the following. I have an aspx page in which I transform an xmlDocument instance to the browser...so (as I understand it) that page...
29
by: Tom wilson | last post by:
I can't believe this is such an impossibility... I have an asp.net page. It accepts data through on form fields and includes a submit button. The page loads up and you fill out some stuff. ...
7
by: Joe Kovac | last post by:
Hi! I have one page with a GridView. Their I can select one item and edit this item on an own page within a DetailsView. After updating the entry I want the user to be able to get back to the...
3
by: radix | last post by:
Hello, I have a aspx page with ajax scriptmanger update panel etc. I also have public string variables on the aspx page. Whenever postback happens from Ajax update panel, at server side all...
5
by: Gilles Ganault | last post by:
Hello Out of curiosity, I was wondering what happens with session data: I read that session data are saved on disk as eg. /var/sess_ID (which is already a performance issue since accessing a...
3
by: Jag | last post by:
Hi I am facing a strange issue. I have 3 ASP pages in the default website 1. auth.aspx <html> <body>
5
by: voidinutah | last post by:
Hello, I'm new to .NET and was trying to find a solution for having a button control do a post back then execute a javascript function. When the button is clicked a post back occurs to save...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.