View Full Version : G4R Super Cloaked Vs. Frame Cloaked
NetRaw
November 12th, 2001, 23:30
I made that super claoked and frame cloaked work, with pathforwarding ... but supercloaked cant load images, so you must give the FULL URL to EACH image. If you use frame cloaked you get more speed, pathforwarding but it redirects with a frame.
I want you guys to rate which once you like more, and give me new ideas
trenzterra
November 16th, 2001, 07:50
actually I like super cloaking until you said images don;'t load...
so I chose both are fine.
NetRaw
November 16th, 2001, 08:04
if read all my posts, i said i fixed that!
they load good and fast!
trenzterra
November 19th, 2001, 08:38
Originally posted by NetRaw
if read all my posts, i said i fixed that!
they load good and fast! then i prefer super cloaked. Anyway how did you do super-cloaked?
trenzterra
November 19th, 2001, 08:44
Hey Netraw, I spotted a problem with your Super cloaked script. it displays a 4 digit number below all the text...
See my site trenzterra.g4r.net it has that 4 digit number below Terms of Service.
All my pages have it too...
I tried using my actual URL and it didn't display the 4 digit number.
gyrbo
November 19th, 2001, 11:35
Originally posted by trenzterra
then i prefer super cloaked. Anyway how did you do super-cloaked?
Pretty easy: just do a PHP include... You can see it when you use a none existing page. Or did you fixed that by using file_exists()?
NetRaw
November 19th, 2001, 16:37
more then that :)
!ben
November 19th, 2001, 17:35
Netraw is correct, it isn't as easy as that.
However, it's not much harder (this example also adds a base url to allow pictures etc. to work)...
$fd = fopen ($redirect_url, "r");
while (!feof ($fd)) {
$buffer = fgets($fd, 4096);
$buffer = ereg_replace("<html>", "<html><base href=$redirect_url>", $buffer);
$buffer = ereg_replace("<HTML>", "<HTML><base href=$redirect_url>", $buffer);
echo $buffer;
}
fclose ($fd);
Try it here: yahoo.r4f.com (http://yahoo.r4f.com)
Ben
btw this isn't a feature r4f.net usually offers, but it can be enabled for freewebspace.net users... email support.
trenzterra
November 19th, 2001, 20:29
Originally posted by NetRaw
more then that :) so did you fix the number error?
NetRaw
November 19th, 2001, 20:33
its not an error, it tells you how big the page is
hehehe
trenzterra
November 20th, 2001, 02:33
Originally posted by NetRaw
its not an error, it tells you how big the page is
hehehe I find that irritating...
NetRaw
November 20th, 2001, 08:04
alright. I will get ride of it :)
well try atleast
trenzterra
November 21st, 2001, 09:29
Originally posted by NetRaw
alright. I will get ride of it :)
well try atleast is it removed now? lazy to check...
[add]it isn't removed still...anyway frame cloaked will solve the problem but I encourage you to solve the problem(if you can).
MN-Carl
November 21st, 2001, 09:34
Originally posted by trenzterra
is it removed now? lazy to check...
:rolleyes:
Oh well ... to lazy to check what ?
gyrbo
November 21st, 2001, 11:11
Originally posted by !ben
Netraw is correct, it isn't as easy as that.
However, it's not much harder (this example also adds a base url to allow pictures etc. to work)...
$fd = fopen ($redirect_url, "r");
while (!feof ($fd)) {
$buffer = fgets($fd, 4096);
$buffer = ereg_replace("<html>", "<html><base href=$redirect_url>", $buffer);
$buffer = ereg_replace("<HTML>", "<HTML><base href=$redirect_url>", $buffer);
echo $buffer;
}
fclose ($fd);
Try it here: yahoo.r4f.com (http://yahoo.r4f.com)
Ben
btw this isn't a feature r4f.net usually offers, but it can be enabled for freewebspace.net users... email support.
The problem with your code is, it eats up bandwidth. You can easly use:
if(substr($redir_url, -4)==('.gif' || '.jpg' || '.jpeg'))
{
header("Content-Type: application/image");
header("location: $redit_url");
exit;
}
This code needs work, but it saves on bandwidth...
Dusty
November 21st, 2001, 14:27
The problem with your code is, it eats up bandwidthNo it doesn't. It's actually a better way of doing it, you're just needlessly complicating things by trying to load the images through the script rather than just printing out a <base href=""> tag and letting it be done with. It could be optimized a bit more, but I don't see where it's wasting bandwidth.
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.