Meta Refresh All Browsers, Working Code Looking for Another Test of it

JesterJoker

Regular Member
Joined
Jan 13, 2008
Messages
238
Reaction score
28
I have been changing some code I had for a refresh to get around the non refresh IE7 Issue.

By default IE7 does not allow meta refresh.


After testing with

- IE7
- Firefox 2.0
- Google Chrome (Safari 525.13) Yeah its Safari really, but its fast.

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<HTML>

<HEAD>

<TITLE></TITLE>

<META HTTP-EQUIV=REFRESH CONTENT="0; URL=http://www.yourSite.com">

<SCRIPT LANGUAGE="JavaScript">

<!?

function time() { 

setTimeout("window.location.replace(?http://www.yourSite.com?)",1) 

}

?>

</SCRIPT>

</HEAD>

<BODY onLoad="time()">

</BODY>

</HTML>


I may be a new member here but trying to help you all get some money made.

If you found this helpful, just hit thanks. Also if you can see an issue with this please post a response. And I would appreciate not being razzed about the code.

Yes I know some people block JavaScript but they dont view alot of webpages because of it. So by default its on.


I'm using this to clean my traffic for affiliate sites.


Jester
 
By default IE7 does not allow meta refresh.

if you use the server-side refresh in php, IE7 WILL refresh and blank the referer.
dont use a meta refresh, use header(refresh ) in the php, as i pointed out in the chrome review thread

but even server side will not work with chrome unfortunately. they have blocked all refreshes completely in chrome
 
but he said he tested it with chrome?
 
but he said he tested it with chrome?

i mean the "refreshes" will not work in chrome, both html meta refresh and serverside header(refresh) methods. these will not work in chrome.

what he posted is in javascript, not really a refresh. that will work on browsers using javascript enabled.

the best overall solution would probably be to check for javascript, if browser has it, use javascript method, if javascript is not enabled by that user, then use server side double-refresh method.
 
Last edited:
I tested the referer with bbclone my tracking software, and it doesnt show the referer

but right now I just tried the

server side one
Code:
<?php 
header('Refresh: 0; url=http://www.mysite.com/page1.php');
?>

and both ways, it shows no referer.


maybe I'm missing something, but i just tried chrome also and its a blank referer its passing.
 
Last edited by a moderator:
I tested the referer with bbclone my tracking software, and it doesnt show the referer

but right now I just tried the

server side one
Code:
<?php 
header('Refresh: 0; url=http://www.mysite.com/page1.php');
?>

and both ways, it shows no referer.


maybe I'm missing something, but i just tried chrome also and its a blank referer its passing.


no your not missing anything, that is the desired effect, to show blank, correct?

not everyone has javascript enabled, and for those browsers, you should use header(refresh) because it works better than meta especially on more stubborn refers that wont blank out like in cheap traffic sources. higher % will be blanked (in my experiences)

also saying to use it like you would a double refresh for stubborn refers that just wont blank, know what i mean.

sorry if i am confusing, sometimes it is hard for people to understand what im trying to say sometimes
 
its ok,,, completely fine.


Just was making sure.

I have a few real cheap traffic sources I use for affiliate networks and I just wanted to triple check its being cleaned.


A little off subject, is there a forum limit when I can setup a custom avatar?

it let me choose a preset one, but I have some custom ones it wont give me a chance to even pick one,

says

1. Use no avatar

2. Pick an avatar from below?


Just making sure.
 
its ok,,, completely fine.


I have a few real cheap traffic sources I use for affiliate networks and I just wanted to triple check its being cleaned.

then you definitely should be using a double refresh method because they leak through A LOT

so make this page refresh to another page that will check the refer before doing it again, like a standard double-refresh would
 
oh and one other thing, ie7 does not have meta disabled by default.
it is only disabled when a user has security set to HIGH or the site is in RESTRICTED list
ie7 default is at medium-high, which most people dont even know where to look to change it.
only more technical people will ever change it

not that it matters too much since there are solutions around it like this one :)
 
keep in midn that IE7 will not refresh under an IFRAME
 
Back
Top