Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Written by Jckf.
- // This checks for proxy headers in the request, and the source
- // port of the connection against common proxy ports.
- if (
- array_key_exists('HTTP_X_FORWARDED_FOR', $_SERVER) ||
- array_key_exists('HTTP_X_FORWARDED', $_SERVER) ||
- array_key_exists('HTTP_FORWARDED_FOR', $_SERVER) ||
- array_key_exists('HTTP_CLIENT_IP', $_SERVER) ||
- array_key_exists('HTTP_VIA', $_SERVER) ||
- in_array($_SERVER['REMOTE_PORT'],array(8080,80,6588,8000,3128,553,554))
- ) {
- exit;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement