NameSilo

Proxy Detection in php

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch

axilant

Account Closed
Impact
28
This isnt ment to be used as is, needs some work but it does the trick. You need some php knowledge to use this.

<?php

echo "Starting Proxy Detection System<br><br>";

#Here you can call a function to check if the IP is blocked
#and if not then continue to the IF statement

if ($HTTP_X_FORWARDED_FOR)
{
echo "Warring: You might be using a proxy server to connect us<br><br>";
echo "Connected Via: " . $HTTP_VIA . " - " . $REMOTE_ADDR;
echo "<br>Your real IP: " . $HTTP_X_FORWARDED_FOR;
}
else
{
echo "You are probably not using a proxy server<br>";
echo "Your IP: " . $REMOTE_ADDR;
}

?>


Thanks,
Cody Selzer
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Mmmm, looks pretty good Cody.. I've done a similar thing in the past.
 
0
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back