Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Sep 15th, 2005, 9:36 AM   #1
ghost_stalker
Newbie
 
Join Date: Sep 2005
Posts: 7
Rep Power: 0 ghost_stalker is on a distinguished road
Rereouting site through php.

It is possible to create a script which you could view a website that is not your own through your browser without actually having you computer connect to that site.

For Example:

Normal Inlude Page

1. Browser goes to php script on your webpage.
2. Php script redirects browser to linked page.
3. Browser access page itself not through php script

My IDea.

1. Browser goes to php script on your webpage.
2. Server get page that you are attempting to access
3. site is diplayed in yuour browser without your computer having accesses the actual site.

I need this to get around the firewall at my school plz help!!!
ghost_stalker is offline   Reply With Quote
Old Sep 15th, 2005, 9:37 AM   #2
Polyphemus_
Expert Programmer
 
Polyphemus_'s Avatar
 
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 3 Polyphemus_ is on a distinguished road
yap, that's possible..
Polyphemus_ is offline   Reply With Quote
Old Sep 15th, 2005, 9:41 AM   #3
ghost_stalker
Newbie
 
Join Date: Sep 2005
Posts: 7
Rep Power: 0 ghost_stalker is on a distinguished road
could you show a sample of code???

I know how to prgram in php but still wa unable to figure this one out.
ghost_stalker is offline   Reply With Quote
Old Sep 15th, 2005, 9:43 AM   #4
Polyphemus_
Expert Programmer
 
Polyphemus_'s Avatar
 
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 3 Polyphemus_ is on a distinguished road
i'm bored, so here is some basic untested code:
<?php
$pagetoread = $_GET['page'];
unset($_GET['page']);

$f = fopen($pagetoread, "rb");
$contents = fread($f, filesize($pagetoread));
fclose($f);

echo $contents;
?>

next steps would include passing parameters, parsing the file so you can also let it load images via the server, etc.
Polyphemus_ is offline   Reply With Quote
Old Sep 15th, 2005, 9:50 AM   #5
ghost_stalker
Newbie
 
Join Date: Sep 2005
Posts: 7
Rep Power: 0 ghost_stalker is on a distinguished road
Ok, now I understand.

Now i just have to find someway to make it so that it can reroute any requested page.
ghost_stalker is offline   Reply With Quote
Old Sep 15th, 2005, 10:24 AM   #6
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Viewing pages without leaving a trail?
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Sep 15th, 2005, 12:34 PM   #7
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 8 Ooble is on a distinguished road
If your PHP version is >= v4.3, you can use the file_get_contents function to open the file, read it to the return variable and close it:
[php]$content = file_get_contents($_GET['page']);[/php]
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Sep 15th, 2005, 1:04 PM   #8
ghost_stalker
Newbie
 
Join Date: Sep 2005
Posts: 7
Rep Power: 0 ghost_stalker is on a distinguished road
Quote:
Originally Posted by DaWei
Viewing pages without leaving a trail?
If done without requiring user names and passwords to access the service yes.
The only trial would look like the server was accessing the site. The only infromation anyone could get was the pages the server accessed, so your ip could not be given away either.

And there could be no popups form the pages as the php would only bring up the requested page.
Also no specific url could be blocked by filters beacuse the computer you are using is not actually accessing the url, the server is.
ghost_stalker is offline   Reply With Quote
Old Sep 15th, 2005, 2:40 PM   #9
Polyphemus_
Expert Programmer
 
Polyphemus_'s Avatar
 
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 3 Polyphemus_ is on a distinguished road
Quote:
Originally Posted by ghost_stalker
Also no specific url could be blocked by filters beacuse the computer you are using is not actually accessing the url, the server is.
yap, but they can block the server...
Polyphemus_ is offline   Reply With Quote
Old Sep 15th, 2005, 2:45 PM   #10
ghost_stalker
Newbie
 
Join Date: Sep 2005
Posts: 7
Rep Power: 0 ghost_stalker is on a distinguished road
But free servers are easy to get and you can have many different servers.
Ore just have one server with many urls.
ghost_stalker is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:01 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC