TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 02-10-2008, 11:31 AM   #1 (permalink)
The Wanderer
 
autehonker's Avatar
 
Join Date: Feb 2008
Posts: 8
Thanks: 9
autehonker is on a distinguished road
Default ProxyGuard [Simple]

Hi this is simple ProxyGuard only blocked normal connecting,this not support web proxy if some one knowe advanced guard please share this (Shock4-5,Tor,etc..)

PHP Code:
<?php
// ProxyGuard
include ('./ProxyGurad.php');

?>
(ProxyGurad.php)
PHP Code:
<?

$basliklar 
= array(
'HTTP_VIA',
'HTTP_X_FORWARDED_FOR',
'HTTP_FORWARDED_FOR',
'HTTP_X_FORWARDED',
'HTTP_FORWARDED',
'HTTP_CLIENT_IP',
'HTTP_FORWARDED_FOR_IP',
'VIA',
'X_FORWARDED_FOR',
'FORWARDED_FOR',
'X_FORWARDED',
'FORWARDED',
'CLIENT_IP',
'FORWARDED_FOR_IP',
'HTTP_PROXY_CONNECTION'
);

foreach(
$basliklar as $baslik)
{
if( isset(
$_SERVER[$baslik]) ) die("Proxy Detected!");
}
?>
Regarts;
autehonker is offline  
Reply With Quote
The Following 2 Users Say Thank You to autehonker For This Useful Post:
wiifanatic (08-22-2008), Y.P.Y (01-22-2009)
Old 02-10-2008, 11:23 PM   #2 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

Looks good to me. Nice and simple.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
The Following User Says Thank You to Wildhoney For This Useful Post:
autehonker (02-11-2008)
Old 02-11-2008, 08:15 AM   #3 (permalink)
The Frequenter
 
ReSpawN's Avatar
 
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
ReSpawN is on a distinguished road
Default

Lovely, going to try it out a.s.a.p.
__________________
"Life is a bitch, take that bitch on a ride"
Send a message via MSN to ReSpawN
ReSpawN is offline  
Reply With Quote
The Following User Says Thank You to ReSpawN For This Useful Post:
autehonker (02-11-2008)
Old 05-17-2008, 06:08 AM   #4 (permalink)
The Frequenter
Zend Certified 
 
Join Date: Sep 2007
Location: Denmark
Posts: 352
Thanks: 8
Kalle is on a distinguished road
Default

Simple yet effective. However I would have used array_key_exists() insted of the isset() construct ;)


*bump* =P
__________________
Send a message via MSN to Kalle Send a message via Skype™ to Kalle
Kalle is offline  
Reply With Quote
Old 08-22-2008, 08:36 PM   #5 (permalink)
The Wanderer
 
Nielsk's Avatar
 
Join Date: Aug 2008
Posts: 5
Thanks: 0
Nielsk is on a distinguished road
Default

Quote:
Originally Posted by Kalle View Post
Simple yet effective. However I would have used array_key_exists() insted of the isset() construct ;)


*bump* =P
*2nd bump*

in_array() is faster :) But since the beginning of cURL based web proxies this script is useless
Nielsk is offline  
Reply With Quote
Old 08-23-2008, 11:15 PM   #6 (permalink)
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

Looks awesome, thanks!
__________________
Tanax is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 05:55 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design