![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Sep 2005
Posts: 7
Rep Power: 0
![]() |
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!!! |
|
|
|
|
|
#2 |
|
Expert Programmer
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 3
![]() |
yap, that's possible..
![]() |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Sep 2005
Posts: 7
Rep Power: 0
![]() |
could you show a sample of code???
I know how to prgram in php but still wa unable to figure this one out. |
|
|
|
|
|
#4 |
|
Expert Programmer
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 3
![]() |
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. |
|
|
|
|
|
#5 |
|
Newbie
Join Date: Sep 2005
Posts: 7
Rep Power: 0
![]() |
Ok, now I understand.
Now i just have to find someway to make it so that it can reroute any requested page. |
|
|
|
|
|
#6 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
|
|
#7 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 8
![]() |
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] |
|
|
|
|
|
#8 | |
|
Newbie
Join Date: Sep 2005
Posts: 7
Rep Power: 0
![]() |
Quote:
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. |
|
|
|
|
|
|
#9 | |
|
Expert Programmer
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 3
![]() |
Quote:
|
|
|
|
|
|
|
#10 |
|
Newbie
Join Date: Sep 2005
Posts: 7
Rep Power: 0
![]() |
But free servers are easy to get and you can have many different servers.
Ore just have one server with many urls. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|