Author Topic: antiproxy  (Read 958 times)

Offline Dr3amz

  • Level 2
  • *
  • Posts: 4
  • Reputation: +0/-0
    • View Profile
antiproxy
« on: December 19, 2007, 02:17:11 PM »
hi all im trying to make a anti proxy system i can set up in the register off my game but i have no idear how to go about it do you know where i can find a script like this ???

Offline dNs

  • Level 4
  • *
  • Posts: 10
  • Reputation: +0/-0
    • View Profile
Re: antiproxy
« Reply #1 on: December 20, 2007, 06:55:00 AM »
if($_SERVER['HTTP_VIA'] || $_SERVER['HTTP_X_FORWARDED_FOR'])
{
   // using a proxy
}

Offline JGadrow

  • Level 35
  • **
  • Posts: 1,133
  • Reputation: +23/-2
    • View Profile
Re: antiproxy
« Reply #2 on: January 18, 2008, 09:47:29 AM »
See DNs's reply above, of course, if you use strict reporting you'll probably want to check if those variables are set first (using isset ()) or you'll get warning notices.
Idiocy - Never underestimate the power of stupid people in large groups.


Offline codestryke

  • Administrator
  • Level 33
  • *****
  • Posts: 589
  • Reputation: +22/-0
    • View Profile
    • eXtremeCast Games
Re: antiproxy
« Reply #3 on: January 18, 2008, 12:33:36 PM »
The items above will ONLY work if the system answers up as a proxy. Anyone trying to damage your system or your game will know to use an anonymous proxy which wont answer up or set the HTTP_VIA / HTTP_X_FORWARDED_FOR headers.

To get around this do a search on the web for a RBL checker (Real-time Blackhole List).

Creating online addictions, one game at a time:

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal