Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   General Business Knowledge (http://www.greenguysboard.com/board/forumdisplay.php?f=10)
-   -   i need to setup redirection... (http://www.greenguysboard.com/board/showthread.php?t=49343)

klinton 2008-10-03 01:29 PM

i need to setup redirection...
 
I would have link on some site,let's say 'A', and I need to setup that link in way to do not show that main site 'A' as referer while surfer visits destination url...
any ways for setting this up besides link to site B with metarefresh tag to site C (destination url) ?
..and besides _target tag
Thanks !

Cleo 2008-10-03 02:00 PM

htaccess should do what you want

Make a directory with a htaccess file in in and put this in the file.
Code:

RewriteEngine on
RewriteRule .* http://www.whereyouwantthemtogo.com/*[R=301,L]


klinton 2008-10-03 02:24 PM

Quote:

Originally Posted by Cleo (Post 423405)
htaccess should do what you want

Make a directory with a htaccess file in in and put this in the file.
Code:

RewriteEngine on
RewriteRule .* http://www.whereyouwantthemtogo.com/*[R=301,L]


hmm but doesn't such method show site 'A' as referer ?

let's say I have link on google.com to cnn.com/test , on cnn.com/test i have this .htaccess -> redirecting to bbc.co.uk...
Wouldn't be google showed as referer in bbc.co.uk stats ?
hmm

Cleo 2008-10-03 02:34 PM

Not really sure actually

klinton 2008-10-03 02:44 PM

Well Thanks anyway :) !

this .htaccess version works better than my previous with 'Redirect' command :)

cd34 2008-10-03 06:18 PM

The only way to do it without a referrer that I can think of would be to send them to a page that did a meta-refresh with a 0 second delay

Code:


I don't believe that you can use javascript as it will show the original site.

so, to use the refresh, set your errordocument 404 to head to the page with your meta refresh, then, have the metarefresh page set to send them to the new page.

Using Redirect or mod_rewrite will send the referrer in the request.

klinton 2008-10-04 03:59 AM

Quote:

Originally Posted by cd34 (Post 423491)
The only way to do it without a referrer that I can think of would be to send them to a page that did a meta-refresh with a 0 second delay

Code:


I don't believe that you can use javascript as it will show the original site.

so, to use the refresh, set your errordocument 404 to head to the page with your meta refresh, then, have the metarefresh page set to send them to the new page.

Using Redirect or mod_rewrite will send the referrer in the request.

unfortunately... :( Thanks

ecchi 2008-10-09 01:32 PM

Is it not possible to set up a script (Perl, PHP etc) that will write the header when you redirect that will state a fake referrer? I've ever tried it, but I'm sure I heard mention of it way back when I first studied Perl.

cd34 2008-10-09 01:57 PM

To actually not show a referrer is easy using a meta-refresh. Getting the browser to do it automatically requires a change to the config in firefox, or, a registry edit for IE.

The only question really is -- what legitimate reason do you have for blocking a referrer in the first place.

Simon 2008-10-09 02:55 PM

Quote:

The only question really is -- what legitimate reason do you have for blocking a referrer in the first place.
Yep, exactly my first thought and why I refrained from answering until I knew that.

:)


All times are GMT -4. The time now is 08:04 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc