HTTP Referrer
I'd like to limit access to an ASP script by checking that they came through the correct path. I believe that I can do this by checking that the scriptname that they came from was myscript.asp
How do I go about doing this though? Are there any problems with relying on Referrer? I heard something about Norton Firewall screwing it up
View Replies
ADVERTISEMENT
A week or so ago, I needed to find the HTTP_REFERER environment
variable to check and see if a user is coming from a certain website:
If Request.ServerVariables("HTTP_REFERER")_
= "http://localhost/mydir/page1.aspx" then
response.write "Click on a menu choice"
else
response.write "check back later
end if
I have a page nested in an IFRAME (for example framepage1.aspx or ..asp), and I need to check to see if a user is coming to (not coming from ) a certain page where the framepage1.aspx is (the framepage1.aspx could appear in not only page1.aspx, but page2.aspx , or page3). I'm not sure how to accomplish this given that the HTTP_REFERER checks on address only incoming.
View Replies
View Related
I have seen a post on how to just receive the domain name when using HTTP-REFERRER. But, I need just the webpage. I have tried modifying the code I saw, to no avail. Can anyone help please?
View Replies
View Related
How can I learn where my visitor came from? I mean which site reffered
to my site? (Something called referrer id/ip)
View Replies
View Related
is it possible to get the url to the refferer to a page as a asp value (vbscript) ? I know the document.write(document.refferer) but don't how to use it in an asp script.
View Replies
View Related
I am running into the same problem. Has a fix been found for this yet? I guess I will just comment out the referrer check until this is addressed. I can't run the risk of turning customers away because the forms don't work.
View Replies
View Related
how I could store the referrer id in this URL http://www.widget.co.uk?referrer=1234 into a session cookie. I've been given this code by someone else but my knowledge of ASP is virutally non-existent and they need this feature in the site as soon as possible.
<%dim vntRef
if request.querystring("referrer") <> "" then
vntRef = request.querystring("referrer")
session("svRef") = vntRef
end if
if session("svRef") = "" then
session("svRef") = vntRef
end if
%>
where this code goes and how I reference it(if I need to) that would be fantastic. Basically I wasn't told about this until after the site went live and they're now telling me to get it done quick smart so the quicker the better.
View Replies
View Related
I think I know what I want to say, but don't know the proper syntax. I want to redirect the user to a new page if the referrer is ANYTHING but one particular page (/index.asp)
Code:
<%
If instr(Request.ServerVariables("HTTP_REFERER"), IS NOT EQUAL TO /= "www.sheridan.edu/index.asp") Then
Response.Redirect("/index.asp")
End If
%> .
View Replies
View Related
I've got several pages with links. When the links are clicked, a value is posted to 'processing.asp' which does a database update then needs to redirect back to the page from which the link was clicked. Is it possible to obtain the full URL of the referring page using asp? I need it potentially to be able to redirect back to something as complex as:
products.asp?Category_Id=3&SubCategory_Id=12
If that was the URL of the page from which it was linked.
View Replies
View Related
i'm using windows XP, IIS 5.1, Visual .NET 2003 and SQL Server 2000.
When I open New Project - Visual C# Projects - ASP .NET Web Service -
Location : http://localhost/WebService1
After that i click OK, then it returns error
"The web server reported the following error when
attempting to create or open the web project
located at the following
URL:'http://localhost/WebService1. HTTP/1.1 302 Found"
After that i try this : Code:
View Replies
View Related
in ie 5 i m writing this below statement
http://localhost/Mail/email.html
email.html page contains 3 field box username , password and name .it calls the form2email.asp page
the code is that
<FORM name="mailform" METHOD=POST ACTION="form2email.asp">
but when it calls that page ie5 shows error
HTTP 405 - Resource not allowed
Internet Explorer
what is the problem
View Replies
View Related
I'm using XML HTTP in an ASP to import HTML content for clients from
their existing web pages. But for some reason, the tabs are now ?'s
What can I do to handle this?
View Replies
View Related
If someone puts a link into my form and I display it it will show:
http://http://www.abc.com as I put an additional http:// in front. So what I want is to detect is user has typed in http://, replace this and then input into DB or display.
I can use the replace function, but how would I check if first 7 characters are http:/
View Replies
View Related
I uninstall IIS and install it back again, will it solve the "HTTP 403.9 - Access Forbidden: Too many users are connected Internet Information Services" problem? I am running on Windows XP and using IIS 5.1 . I got this problem when I created a search page in Frontpage but I have deleted it when I found out I have this problem. I have disable HTTP Keep Alives in the IIS properties but I still cant resolve the problem.
View Replies
View Related
When i try to post message or try to open a new account server gives this error :
How can solve this problem
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Cannot update. Database or object is read-only.
/Start/Forum/register_new_user.asp, line 193
View Replies
View Related
I am getting the following error when trying to run an SQL insert in my ASP page and I cannot find anything in TechNet that references this error.
Below are IIS messages:
HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services
Error Type:
Microsoft OLE DB Provider for SQL Server (0x80040E14)
Issue selected is no longer valid. Please select another issue.
/ActivityTrak/maintain/activityedit.asp, line 542
View Replies
View Related
It seems to me that if I can have a regular .asp page that contains multiple <input type='file'> elements, and a user could browse to individual files and fill up all the elements on the page, that there should be a way to replicate the HTTP post data. Can
I somehow make my client-side activeX component post the same type of data?
I tried using MS Stress Tool to view the post data being sent from a regular.asp page that contained several <input type='file'> elements.I saw that there was a structure to it. The structure contained the binary data of the files I had selected for upload. But, I have not been able to figure out how I would replicate this structure in my
client-side activeX component
View Replies
View Related
I cannot open any asp pages on my server. I get a http:500 internal server error. Html pages open fine, but any asp pages produce this error.
View Replies
View Related
in ie 5 i m writing this below statement http://localhost/Mail/email.html
email.html page contains 3 field box username , password and name .it calls the form2email.asp page the code is that
<FORM name="mailform" METHOD=POST ACTION="form2email.asp">
but when it calls that page ie5 shows error
HTTP 405 - Resource not allowed
Internet Explorer
what is the problem.
View Replies
View Related
I have certain ASP pages that are wel tested and working in many places. But there is one server (window 2000) on which some of the asp pages do not work. I get a HTTP 404 fil not found error. I checked more than a few times and made sure the file are there on the server where the IIS application is looking at.
some of the ASP pages are working fine. Only those ASP pages whose name starting with 'ETC' is not working. If I chang the name of the same ASP to some thing other than "ETC" it works fine. Do you think there is some software on the sever that tells IIS t block requests coming from any ASP pages starting with the name 'ETC'. what is going on?
View Replies
View Related
We have written a small asp page to accept an HTTP request, pass the request onto an Oracle database for processing and then return the results.
This works find when we call it using HTTP/1.0 but if we use HTTP/1.1 or above it doesn't work. Here's the code:
View Replies
View Related
I'm having problems with timeouts on HTTP uploads. I set the session timeout property to zero, but it still didn't work. Is there a way to set the timeout to never expire?
View Replies
View Related
Window XP PRO, Access 2000, FR2002, FP2002 ext.
I have 3 webs with database, two work fine, the other
gives this error.
Microsoft OLE DB Provider for ODBC Drivers
error '80004005'
Microsoft][ODBC Microsoft Access Driver] The Microsoft
Jet database engine cannot open the file '(unknown)'. It
is already opened exclusively by another user, or you
need permission to view its data.
I had to reinstall Window and published all the web site
from ISP were they work fine. They worked fine before the
crash.
View Replies
View Related
I have a form that a user submits their clan's website, and roster page.
What I want to do, is check to see if the field submitted contained
"http://" and if not, add it to the field submission.
I know i can make this easier, and put the http:// in the field as a default
value, but i want to know how to do this with a bit of form validation or
something.
View Replies
View Related
I have free web-based email.Is there any way I can create an http server? For example, like hotmail does for outlook express? If so, how? Hotmails HTTP server is at http://services.msn.com/svcs/hotmail/httpmail.asp.
View Replies
View Related
I am having a problem re-configuring the intranet server to connect ASP page with Oracle Database. I have a system DSN created with oracle. I am using the Microsoft ODBC for Oracle driver.
However, I am still getting the error below:
HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services
Error Type:
Microsoft VBScript runtime (0x800A01C2)
Wrong number of arguments or invalid property assignment: 'OOS.GETINFO'
/otis/common/memolist.inc, line 63
The file coding is: Code:
View Replies
View Related
If I want to have a username/password dialog in my page, how can I add
http header in ASP for username/password dialog? I want to hardcode
the username/password in my page and check the authentication.
View Replies
View Related
I get a http 500 error on all asp pages. When turning off
the friendly message box, the message is "Class does not
exist". What is the fix for that? This affect all asp
pages incling the default asp pages in the default
directory.
View Replies
View Related
Why ASP's MS XML HTTP request object gets another page's HTML source
without interpreting path differences. For example, if my page is:
www.test.asp/one/two/page1.asp
with XMLHTTP getting source code of page:
www.test.asp/one/page2.asp
and this latter page has a CSS with path ../include/css.css, it won't
be used in page1.asp because path will stay as it is "../include/
css.css", not "../../include/css.css" as needed for page1.asp?
View Replies
View Related
I created a form for users to sign up for a newsletter our site sends out. The thing is we use a third party that keeps a db of our subscribers and sends the email for us. The signup resides on our site and when the user submits they get poasted to this third party site and then click through and get refreshed to our site again.
We want change that process and keep the user on our site so now thier values need to get posted to the 3rd party behind the scenes. Code:
View Replies
View Related
I'm trying to detect if the user is utilizing HTTP or HTTPS in the address
bar. The following code responds true regardless of whether I use HTTP or HTTPS.
What should I be using? In the end, if the user types in HTTP, I will
redirect them to HTTPS.
<%
If Request.Servervariables("https") <> "" Then
Response.Write "this is https...OK!!!"
End If
%>
View Replies
View Related
In our ASP page, we call XMLHttp to download XML files. When calling our
page using localhost (localhost/myWebSite/myPage.htm), it works, but when
calling using the IP address of the web server
(xx.x.x.xxx/myWebSite/myPage.htm), I got "Permission denied" error in the
HTTP.Open statement.
Set http = CreateObject("Microsoft.XmlHttp")
http.open "Get", "http://" & "xx.x.x.xxx" & "/XMLFiles/N-1min.xml",
ALSE --> permission denied error
Why do I get permission denied error on the HTTP.Open, and how to fix it ?
View Replies
View Related
i want to info about iis caching and a special one when i get the a site with xml http it is caching by iis ... what is the refresh period and data amount of this caching...
could anyone give me a info or url to take more info...
View Replies
View Related