28, May 2012

prevent submission via proxy - webmaster forum

 
Webdigity webmaster forums
[ 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
Instabuck - The easy way to sell digital products online

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


It's time to use PHP5!


« on: Oct 13, 2007, 12: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

I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #1 on: Oct 13, 2007, 12:42:46 am »

There is always a solution Smiley

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

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

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #2 on: Oct 13, 2007, 12:45:38 am »


I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #3 on: Oct 13, 2007, 12: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 or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #4 on: Oct 13, 2007, 12:59:58 am »

so I need a list to block web proxies?

I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #5 on: Oct 13, 2007, 01: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 or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #6 on: Oct 13, 2007, 07:47:04 am »

I create a new form using Ajax for submission Wink

I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #7 on: Oct 13, 2007, 10: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 or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #8 on: Oct 13, 2007, 10: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

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....

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?
May 28, 2012, 09:33:08 pm





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!






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