PDA

View Full Version : [PHP] Make a "refresh" proxy



Luckyrare
30-09-2007, 04:44 PM
This is a rather simple way to tricking these automatic filters they have in schools and the technician(s).

You can use any proxy script, I will use PHProxy (http://sourceforge.net/projects/poxy/). If you wish to use a different proxy script, you can but just remember it will most likely have different file names.

Please note: Having a URL with the word "proxy" in is just a waste of time. It will be blocked.

Examples (Made them up):

proxy.com (bad url)
ismeh.com/proxy (bad url)

english-help.com (good url)
lalaland.com/help/english (good url)

Firstly, download the PHProxy script. In there you should have:

index.php
index.inc.php
style.css
plus, other text files that you dont need.

Rename the index.php to proxy.php

Make a file called help.html and create some content that is maths/english/science/any other school subject related. You need to include all your head, body, title tags etc.

Create a new file called index.php and in this file we need the following PHP:

<?php
if($_COOKIE[visit] == NULL){
setcookie("visit", "1");
require("maths.html");
}
elseif($_COOKIE[visit] > 2){
require("proxy.php");
}
else{
$visit = $_COOKIE[visit] + 1;
setcookie("visit", $visit);
require("maths.html");
}
?>
Upload all your files onto your server, if you have it on a dir remember not to call it /proxy/ call it something like /maths/ etc.

If you use this snippit of code please post your site here or send me a PM ;)

If you want to make it less likely to be blocked - you remove all the "proxy" words from the proxy.php but this is not needed.

Enjoy <3
Danny

Edited By Sunny. (Forum Moderator): Post edited due to request.

GoldenMerc
30-09-2007, 04:47 PM
Good guide Danny hopefully this will be stuck

Lycan
30-09-2007, 04:50 PM
be wiser not to name the .php proxy as the keyword proxy is normally banned anyway

Luckyrare
30-09-2007, 04:52 PM
be wiser not to name the .php proxy as the keyword proxy is normally banned anyway
PHP is server side. So the file name shouldnt matter. :)

Invent
30-09-2007, 04:55 PM
This was released a while back but wasn't posted as a thread.

Nice idea for the refreshing anyway (:

L!nK
30-09-2007, 04:56 PM
ohh this is nice, might use this for college hehe xD

Jordy
30-09-2007, 05:18 PM
I just tried it on my proxy, and it isn't working. I haven't done anything to your code, just changed file names.

Is anyone else getting the same problems? It just stays on maths.htm after 100s of refreshes.

<?php
/* Proxy trick */

if(!$COOKIE[visit]){
$_COOKIE[visit] = "1";
require("maths.htm");
}

/* If the visit cookie content is 3, we display the proxy */
elseif($COOKIE[visit] == "3"){
require("proxy.php");
}

/* If its not we add 1 */
else{
$_COOKIE[visit]++;
require("maths.htm");
}

?>

Thanks,
Jordy

Luckyrare
30-09-2007, 06:45 PM
I am so stupid.



<?php
if($_COOKIE[visit] == NULL){
setcookie("visit", "1");
require("maths.html");
}
elseif($_COOKIE[visit] > 2){
require("maths.html");
}
else{
$visit = $_COOKIE[visit] + 1;
setcookie("visit", $visit);
require("maths.html");
}
?>

I have coded for like 3-4 weeks :rolleyes:

Please update mod/tim.

Dentafrice,
30-09-2007, 06:52 PM
I am so stupid.



<?php
if($_COOKIE[visit] == NULL){
setcookie("visit", "1");
require("maths.html");
}
elseif($_COOKIE[visit] > 2){
require("maths.html");
}
else{
$visit = $_COOKIE[visit] + 1;
setcookie("visit", $visit);
require("maths.html");
}
?>

I have coded for like 3-4 weeks :rolleyes:

Please update mod/tim.
That is still wrong? :P Wouldn't include the proxy?

Sunny.
30-09-2007, 07:00 PM
Great i will use this on my website :)

Luckyrare
30-09-2007, 07:17 PM
arg.

<?php
if($_COOKIE[visit] == NULL){
setcookie("visit", "1");
require("maths.html");
}
elseif($_COOKIE[visit] > 2){
require("proxy.php");
}
else{
$visit = $_COOKIE[visit] + 1;
setcookie("visit", $visit);
require("maths.html");
}
?>

please update

Mr Macro
01-10-2007, 03:52 PM
<?php
ob_start();
if($_COOKIE[visit] == NULL){
setcookie("visit", "1");
require("maths.html");
}
elseif($_COOKIE[visit] > 2){
require("proxy.php");
}
else{
$visit = $_COOKIE[visit] + 1;
setcookie("visit", $visit);
require("maths.html");
}
?>

You forgot to start cookies.

&
01-10-2007, 03:55 PM
is that correct now?

benjamin
01-10-2007, 03:57 PM
Nice guide [:

When someone makes one, post ittt :D!

I need a new one :P

Ajax.
01-10-2007, 04:00 PM
Im gonna make on for school.

Invent
01-10-2007, 04:04 PM
You forgot to start cookies.

I don't think you fully understand what ob_start() does.

Mr Macro
01-10-2007, 04:13 PM
I don't think you fully understand what ob_start() does.

I was thinking of sessions, although i don't know where i got ob_start(); from.

Want to hide these adverts? Register an account for free!