referer

Response.Redirect with Different Referrer

I've got the following piece of code in an aspx webpage: Response.Redirect("/Someurl/"); I also want to send a different referrer with the redirect something like: Response.Redirect("/Someurl/", "/previousurl/?message=hello"); Is this possible in Asp.net or is the referrer handled solely by the browser? Cheers Stephen ...

ASPNET MVC: Way to figure out the route of the referer (sic)?

I have some POST actions on my controller that are hit from a pair of GET actions. When validation fails, I want to render the view of the action that the POST is coming from. For example: ~/accounts POSTs to ~/accounts/disable - render "index" view on validation error ~/accounts/profile POSTs to ~/accounts/disable - render "profile" ...

Executing javascript during redirect without changing original referrer

I need to test whether or not a click-through is valid by using some javascript client-side tests (e.g., browser window dimensions). However, I would like the original click referrer to remain the same. Is there a way I can do a redirect, execute some javascript, capture the browser details and then continue the click-through while ke...

request.referer with anchor

is there a way to get the referer with the anchor from the referer page.. the situation is - i have a search page which loads results (users) below the search box using ajax. i am changing the hash/anchor on the fly when the search keyword is typed in. so it becomes http://localhost/users/search#foo the user gets link in the ajax res...

Can user request's "Referer" be modified just in server side?

I have a web site server which do such work like this: The server receives request from user A(request referer is blank) and then redirect(at server side) user A to visiting web site B; Is there any way I could modify user A's request referer to my domain name, then site B can get my domain name from user A's request? Thanks in advanc...

Track http domain referer

Can i track the http referer with javascript, and append a variable to the URL string to store into a dbase? or could i track a cookie that the user gets? (very layman's terms here, sorry) if http referrer is domain.com add to url '&referer=google' which should stay with them during their session. OR when a user clicks my Googl...

getting referer from auth in cakePHP

I have a link on the main page that is only accessible if they are logged in. However, if this link is clicked, I want to show a custom error message on the login page (a custom 'Message.auth'). i.e. I want (pseudo code) if (referer == '/users/reserve'){ Message.auth = 'Please log in to reserve tickets'; } else { Message.auth ...

Curl/Fetch question - Referer, Post data, Cookies

Hi.. Got a Curl question (and yeah, i've searched Google, this site, as well as the docs!!) Somewhat new to curl. Trying to use Curl from the cmdline (linux) to fetch pages from a college website (sjsu). I can somewhat get the 1st page, but the 2nd/2rd pages use referers/cookies.. I think this is where things are screwed up.. I'm also...

htmlunit cookie/refer question

Hi. Testing out the java HtmlUnit lib. Trying to figure out if there's a way to set/delete the cookie file (cookiejar) used by the webclient object.. I've searched multiple docs, as well as the HtmlUnit API with no luck, so I'm assuming I'm missing something. Also, is there a way to see the headers (request/respnse/referer) being xfer...

How to get last page visited in a controller

Hi, is there a way to get or store the last page visited? Example if I'm on a List Page with a New link that loads a page with form. If the user cancels, you go back to the previous page (List Page). Thanks ...

Setting the Referer using HttpWorkerRequest's SendKnownResponseHeader method

Hello, I'm developing an IHttpHandler in an ASP.NET MVC project and I want it to be as fast as possible. I've read that using HttpWorkerRequest was much more efficient than getting/setting data directly from the HttpContext object because it bypasses all the checks/conversions/encapsulations done by the framework. It works pretty well...

How to use strstr with $_SERVER['HTTP_REFERER']

I'm using php to make it so that incoming traffic to my website will append information depending on the search engine. I'm setting $_SESSION['kw'], if it's not already set, to tel me that it's seo and to append the search terms: if (isset($result['q'])) $_SESSION['kw'] = 'seo-'.str_replace('\\"',"X",$result['q']); elseif (isse...

HTTP Referrer and IE7 and IE8

Hi i've tried the following to find the referrer in MSIE / IE7 and IE8 but its returning blank each time; PHP: <? echo $_SERVER['HTTP_REFERER']; ?> JAVASCRIPT: document.write('Thanks for visiting from ' + document.referrer); Does any know what the issue could be I'm referering using document.location from a page on another domain ...

PHP detect if page is reloaded with PHP_SELF

I have a form that reloads the page with the updated data: <form name="form" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>"> ... <input type="submit" name="Submit" value="Update data"> </form> When the page is updated I want to display a message "Data updated". There was something like this with Referer I beleve, b...

Is it possible to set the referer with Scrubyt?

I can't seem to get a page to load with scrubyt and I think its because the page I am navigating to checks the referer. Is it possible to set the referer on the fetch action? ...

How to set the referer on a rewrite rule?

I have the following problem: I use a script that saves the referer URL. I want this URL to one of my own URLs. So let's say a users access the page http://example.com/page1 I want to rewrite that URL to http://example.com/page2 and safe the referer on that page. I don't want to do that with a PHP script as otherwise I would have to ext...

Referer spoofing using an WebBrowser Control in .Net C#

Hi, We are developping a software in c# (WinForm) that use a WebBrowser Control. We would like to spoof referer but it seems very hard to do it well. What we did : We just add "Referer: http://www.ourwebsite.com" in the http header when we use WebBrowser.Navigate(URL, null, null, REFERER); Result : Using this method, on URL, we can de...