Jump to content
MakeWebGames

[mccode] Proxy Check


ddupuis

Recommended Posts

This is a little bit of code you can add in you header.php. It will check the users IP each time the header is loaded.. Works every time.. Unless proxy is not in the list... I have provided the SQL, but for our reasons I will not be diclosing what proxies are in our DB..

<?php

$ip=$_SERVER['REMOTE_ADDR'];

$q=$db->query("SELECT * FROM proxylist");

while($r=$db->fetch_row($q))

{$ipcheck = $r['ip'];

if($ip == $ipcheck)

{

$db->query("UPDATE users SET fedjail=1 WHERE userid=$userid");

if($ip != $ipcheck)

{}}}$h->endpage();

?>

RUN SQL:

CREATE TABLE `proxylist` (

`id` int(11) NOT NULL auto_increment,

`ip` text NOT NULL,

`domain` text NOT NULL,

PRIMARY KEY (`id`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

INSERT INTO `proxylist` VALUES (1, '208.113.154.25', 'wiggum.dreamhost.com');

INSERT INTO `proxylist` VALUES (2, '209.17.190.78', '209.17.190.78');

INSERT INTO `proxylist` VALUES (3, '67.159.44.20', 'sunny.cirtexhosting.com');

INSERT INTO `proxylist` VALUES (4, '72.36.145.138', '138.145.36.72.static.reverse.ltdomains.com');

INSERT INTO `proxylist` VALUES (6, '69.60.118.35', '35-118-60-69.serverpronto.com');

INSERT INTO `proxylist` VALUES (7, '75.126.146.18', 'prx9.com');

INSERT INTO `proxylist` VALUES (8, '67.159.44.206', '');

INSERT INTO `proxylist` VALUES (9, '67.192.60.213', 'gold.jumponlinewith.us');

INSERT INTO `proxylist` VALUES (10, '66.232.113.128', '66.232.113.128');

INSERT INTO `proxylist` VALUES (11, '74.86.122.186', 'lian.com');

INSERT INTO `proxylist` VALUES (12, '66.90.73.227', 'ip227.dedicatedracks.COM');

INSERT INTO `proxylist` VALUES (13, '69.80.224.68', 'hosted.by.alphared.com');

INSERT INTO `proxylist` VALUES (14, '198.54.202.82', '198.54.202.82');

INSERT INTO `proxylist` VALUES (15, '67.159.41.122', '67.159.41.122');

INSERT INTO `proxylist` VALUES (16, '72.21.53.90', 'ip0.wuhosting.com');

INSERT INTO `proxylist` VALUES (17, '67.159.45.52', 'LimitKiller.com');

INSERT INTO `proxylist` VALUES (18, '66.37.153.74', 'web1.nsai.net');

INSERT INTO `proxylist` VALUES (19, '74.208.73.158', 's15262791.onlinehome-server.com');

INSERT INTO `proxylist` VALUES (20, '68.178.197.203', 'ip-68-178-197-203.ip.secureserver.net');

INSERT INTO `proxylist` VALUES (23, '66.90.118.45', 'luvdex.com');

INSERT INTO `proxylist` VALUES (21, '66.37.153.74', 'web1.nsai.net');

INSERT INTO `proxylist` VALUES (22, '67.159.41.232', '.');

INSERT INTO `proxylist` VALUES (24, '66.90.77.2', 'server.megaupload.us');

INSERT INTO `proxylist` VALUES (25, '208.53.138.150', 'stealth.shell-mx.net');

Link to comment
Share on other sites

Re: Proxy Check

and then i would be publicly tell people what proxies we are blocking.. sorry about that... can't do it..

and our page load time didn't increase at all so you should talk to your host..

I've added some proxies to the first post to help get you list started..

Link to comment
Share on other sites

Re: Proxy Check

 

and then i would be publicly tell people what proxies we are blocking.. sorry about that... can't do it..

and our page load time didn't increase at all so you should talk to your host..

I've added some proxies to the first post to help get you list started..

 

If I really wanted I could use your IP address.

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 months later...

Re: Proxy Check

proxy check will end up losing you players in this manner.

 

some people truly are on proxys for internet service.

 

Why not log a cookie of the person logged in and upon them trying to log into another account both accounts are put in fed jail.

that will sole the issue you are really going after of multis.

TJ

Link to comment
Share on other sites

  • 2 months later...

Re: Proxy Check

 

proxy check will end up losing you players in this manner.

 

some people truly are on proxys for internet service.

 

Why not log a cookie of the person logged in and upon them trying to log into another account both accounts are put in fed jail.

that will sole the issue you are really going after of multis.

TJ

This mod allows you to BLOCK certain or most used proxie sites

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...