5, December 2008

prevent submission via proxy - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: prevent submission via proxy
« previous next »
Pages: [1] Print

Author Topic: prevent submission via proxy  (Read 1176 times)
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6486
39748 credits
Members referred : 374


It's time to use PHP5!


« on: Oct 13, 2007, 01:39:55 AM »

Hi,

I found some code to check if someone is visiting your page via a proxy:


if (
      
$_SERVER['HTTP_X_FORWARDED_FOR']
   || 
$_SERVER['HTTP_X_FORWARDED']
   || 
$_SERVER['HTTP_FORWARDED_FOR']
   || 
$_SERVER['HTTP_VIA']
   || 
in_array($_SERVER['REMOTE_PORT'], array(8080,80,6588,8000,3128,553,554))
   || @
fsockopen($_SERVER['REMOTE_ADDR'], 80$errno$errstr30))
{
    exit(
'Proxy detected');
}


but it looks to me that its not working.

Actually I want that people can't submit my form if they are using a web proxy (phproxy or cgiproxy)

is this possible? I know that no headers are send with those anonymous proxies


Last blog : Just a better Internet portal provided by Google
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8272
42619 credits
Members referred : 3



« Reply #1 on: Oct 13, 2007, 01:42:46 AM »

There is always a solution Smiley

http://www.maxmind.com/app/proxy Visit through proxy

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy or twitter Visit through proxy

Last blog : Free Unlimited Bandwith and disk space to good to be true?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6486
39748 credits
Members referred : 374


It's time to use PHP5!


« Reply #2 on: Oct 13, 2007, 01:45:38 AM »



Last blog : Just a better Internet portal provided by Google
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8272
42619 credits
Members referred : 3



« Reply #3 on: Oct 13, 2007, 01:57:01 AM »

There are many free lists, but none is updated enough. This one from maxmind is the best around.

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy or twitter Visit through proxy

Last blog : Free Unlimited Bandwith and disk space to good to be true?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6486
39748 credits
Members referred : 374


It's time to use PHP5!


« Reply #4 on: Oct 13, 2007, 01:59:58 AM »

so I need a list to block web proxies?


Last blog : Just a better Internet portal provided by Google
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8272
42619 credits
Members referred : 3



« Reply #5 on: Oct 13, 2007, 02:13:49 AM »

In my opinion if you want a professional solution you need MaxMind's API. As they know the real owner of almost every ip address they can for sure determine if one is a proxy or not Smiley

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy or twitter Visit through proxy

Last blog : Free Unlimited Bandwith and disk space to good to be true?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6486
39748 credits
Members referred : 374


It's time to use PHP5!


« Reply #6 on: Oct 13, 2007, 08:47:04 AM »

I create a new form using Ajax for submission Wink


Last blog : Just a better Internet portal provided by Google
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8272
42619 credits
Members referred : 3



« Reply #7 on: Oct 13, 2007, 11:13:12 AM »

That's a good one, but make sure that it wont work from javascript enabled proxies Smiley

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy or twitter Visit through proxy

Last blog : Free Unlimited Bandwith and disk space to good to be true?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6486
39748 credits
Members referred : 374


It's time to use PHP5!


« Reply #8 on: Oct 13, 2007, 11:17:08 AM »

That's a good one, but make sure that it wont work from javascript enabled proxies Smiley

yeah I know, its more about the people using proxies and automated scripts Wink


Last blog : Just a better Internet portal provided by Google
Nikolas' Servant Child
*
Posts: 30
180 credits
Members referred : 0


« Reply #9 on: May 28, 2008, 04:54:59 AM »

removed...
« Last Edit: May 28, 2008, 05:06:34 AM by wineo »
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=7227
Tags : proxy header php Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: prevent submission via proxy
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Dec 05, 2008, 01:24:41 AM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 37.995
Total Topics: 7.685
Total Members: 4.467
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: jschless81

29 Guests, 5 Users online :

10 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.