Topic: Proxy Checking Script - Where To Place / Good Idea To Use?

Just wondering if this would work well if a forum is getting hit by proxies?
And would one add it too header or index?

[code=php]
<?php

/**
* Block Proxy Script
* Copyright 2009 - www.pgmr.co.uk - contact@pgmr.co.uk
*/

function checkProxy {
if($_SERVER['HTTP_X_FORWARDED_FOR'] || $_SERVER['HTTP_X_FORWARDED'] || $_SERVER['HTTP_FORWARDED_FOR'] || $_SERVER['HTTP_CLIENT_IP'] || $_SERVER['HTTP_VIA']) {
die('No proxies allowed');
}
}

?>
[/code]


Edit: It seems this may catch a bit too much I was told...

Re: Proxy Checking Script - Where To Place / Good Idea To Use?

Yes, it can catch good requests. Not all proxies are bad.

3

Re: Proxy Checking Script - Where To Place / Good Idea To Use?

Is it possbile to block specific proxies?

is it possible to block all email addresses from a specific domain name? e.g. mailinator.com

Re: Proxy Checking Script - Where To Place / Good Idea To Use?

wandy wrote:

Is it possbile to block specific proxies?

you can use htaccess for that

wandy wrote:

block all email addresses from a specific domain name? e.g. mailinator.com

via bans page; you leave blank name and ip and just put       mailinator.com  in email  I believe...

5

Re: Proxy Checking Script - Where To Place / Good Idea To Use?

@KeyDog thanks