Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7195313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:33:12+00:00 2026-05-28T20:33:12+00:00

At school, there are blocks on sites. I intend to undo that. Even if

  • 0

At school, there are blocks on sites. I intend to undo that. Even if I don’t, I like this idea. So: I have a php page (source.php) to get source code of any site (no cross site ajax).

<?php
    echo file_get_contents(urldecode($_GET["url"]));
?>
<script>
    if(document.getElementsByTagName("base")[0])
   document.getElementsByTagName("base")[0].href="<?php echo $_GET["url"] ?>";
    else
    document.head.appendChild(document.createElement("base").href="<?php
    echo $_GET["url"] ?>");
</script>

Simple. Here is the index.html

<html><head><title>Unblocker</title></head><body>
<div width="100%" height="10%">
<form onsubmit="return go()">
<input id="url" value="http://www.google.com/">
<input type="submit" value="Go">
</form>
</div>
<div width="100%" height="90%">
<iframe src="http://www.google.com/" width="100%" height="100%" id="frame">
</iframe>
</div></body></html>

And now the javascript (to be inserted into the head tag)

function go(){
    url=document.getElementById("url").value;
    frame=document.getElementById("frame");
    //do some url validations, not posting cause doesn't matter
    if(url.isValid)//example
        frame.contentWindow.location=location.protocol+"//"+location.hostname+"/
        source.php?url="+url;
    return false;//to prevent page reload
}

A couple of things: First, is this legal, taking whole source codes and displaying them despite my good intent? Also, will it work, or is there anything obvious that can make it better? I know that the server side can’t be filtered (assuming that this site is not blocked!). I know that it is very limited, but I might be able to expand it to allow clicking links and all.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T20:33:13+00:00Added an answer on May 28, 2026 at 8:33 pm

    You intend to write a proxy. I think you should simply use http://www.phpproxy.net or look for a proxy software and install it on your server.

    OR you could go on and do it. You could end up with a product and you will have learned a lot about the HTTP protocol and creating a proxy. Surely more than you can learn at school.

    Proxies are not illegal, but it’s probably against your school rules, assuming they have those rules written down somewhere and they didn’t forget about the proxy thing. 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this WebView that brings up my school's lunch menu. Is there a
I learned C++ at school, but there are several things I don't know, like
I had a quiz at school and there was this question that I wasn't
So I have blocks of paragraphs that doesnt fit on my page, my solution
I have a school project to program multilayer perceptron that classify data into three
in my program there are three class Student,School and TestStudent. I have declared students
I have a small school management project. There are a few thousand records per
I have a load of apps written to target 1.6 (old school) Is there
I have made a small application on a school. Where there is a dropdown
I have an internet connection from school, where there are restriction about what ports

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.