how to remove referral

Started on the old forum in December 2010 · view the original in the archive · old links redirect here

10 replies · 1,887 views · started 15 years ago · 1 min read

5 participants
frostymarvelous Senior · 266 posts #2

Look at the end of the link, after the query, ie ? Sign, you should see something like ref=some number or something similar. its usually obvious. Remove that.

However, if you mean the site referer in the server vars, that can be changed in your browser privacy settings however not all browsers do that, or use a proxy

Perfection comes at a cost

I accept liberty!

arpan.rnc Developer · 94 posts #3

not that.. I wanted to know how to remove the referral that a site sends while people go from that site to the other site(linked in d previous site ) .If no variables are sent i.e without the variables after ?

in other words say you go from my site A to some other site B via a link in A. Then A will know that you are coming from A because the analytic data of a site can show the referring site. So i wanted to know how to stop that. That is stop sendine referrals to other sites.

frostymarvelous Senior · 266 posts #4

However, if you mean the site referer in the server vars, that can be changed in your browser privacy settings however not all browsers do that, or use a proxy

That's what that paragraph was for. Just trying to cover all the bases.

This is sent in the http request that a browser sends to the server. If your browser supports it, you can disable it or use a proxy, but I doubt if you can disable it in the script cos it is client side dependent.

Ill check for you and give you feedback.

Perfection comes at a cost

I accept liberty!

ori Lead · 512 posts #6

u can create a reffering page thats outside the normal session of your site meaning the reffering page will be lost

frostymarvelous Senior · 266 posts #8

I did some research and here are a few ways to remove the referer.

  1. Clicking a link from https page to http strips the referer.

  2. Using flash links.

  3. Using header(location: ) in php. This is what ori mentioned. Create a page called redirect.php or whatever. Make all links in your site like this. "redirect.php?url=http://site-to-go-to.com" Use $_GET['url'] in the redirect page to get the URL and then use header(location: ) to send the user there. Will work.

Can't find a javascript solution unfortunately. Still looking.

Perfection comes at a cost

I accept liberty!

GiLL Senior · 356 posts #9

ok lets give you one more example

your site is yoursite.com and you wants to put other site link like othersite.com so your worry when user click on that link then othersite.com can see session etc in link right ? you just wants to send only site link not like that yoursite.com/index.php?sid=xs8qywewye8ey8qs912w etc ?

ok make a php page call it redirect.php

edt it and put

<?php
/* Redirect browser */
header("Location: http://othersite.com/");
/* Make sure that code below does not get executed when we redirect. */
exit;
?>

so now you have to place a link at your site like yoursite.com/ redirect.php thats all

left wap stuff

frostymarvelous Senior · 266 posts #11

You are welcome.

Perfection comes at a cost

I accept liberty!

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close