View Full Version : restrict post from another form
esthera
04-10-2005, 09:12 PM
Is there anyway I can force my program to only accept posts from my form and not from anyone else trying to post in.
both pages are asp pages.
glenngv
04-11-2005, 05:08 AM
Use Request.ServerVariables("HTTP_REFERER") to know which URL the request came from. Although it's not reliable as some firewalls/proxies are configured not to send referer information.
esthera
04-11-2005, 06:05 AM
but as you mentioned some people block the referer -- I don't want to push away people who really want to fill out the form --
is there any other way?
glenngv
04-11-2005, 06:21 AM
Use session variable.
http://www.codingforums.com/showthread.php?s=&threadid=27245
esthera
04-11-2005, 06:50 AM
I tried that as well but as mentioned in the post it requires cookies to be enabled --
any other ideas?
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.