Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
Rapid PHP 2018 15.5
IBDAC 6.4
Online Course Booking Script 1.3.3
Database Workbench Pro 5.6.4
Job Portal Script 1.3.2
The C# PDF Library 5.2
PostgreSQL Data Access Components 6.0
Virtual Data Access Components 11.0
HTMLPad 2018 15.5
WeBuilder 2018 15.5
SentiMask SDK Trial 2.0.0
Track Order For Magento 2 1.0.0
Calendar 365 For Dynamics CRM 4.0
Scimbo 1.2
Odoo Furnito Theme 1.0
Top Code
TdsPrinter 1.8
Top Rated
VisualNEO Web 2018.12.15
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
Get user's IP address even when they're behind a proxy 
File ID: 64325






Get user's IP address even when they're behind a proxy 
Download Get user's IP address even when they're behind a proxy http://code.activestate.com/recipes/578114-round-number-to-specified-number-of-significant-di/Report Error Link
License: Freeware
Downloads: 166
Submit Rating:
Get user's IP address even when they're behind a proxy  Description
Description: Function to get the user's IP address in a web app or CGI script, even when they're behind a web proxy.

We use web.py as our web framework, but change web.ctx.env and web.ctx.get('ip') to whatever the equivalents are for the CGI environment variables and REMOTE_ADDR are in your framework.

License: Freeware

Related: Address, Cgi, Ip, Web, webpy

O/S:Windows

Downloads: 166



More Similar Code

This module uses a visitor's IP address to identify the geographical location (country) of the user. The module makes this determination and stores the result as an ISO 3166 2-character country code in the Drupal $user object, but otherwise has no effect on the operation of your site. The intent is simply to provide the information for use by other modules. A function is also provided for you to perform your own lookup, to use in your own...



Correct comment's ip address with X-Forwarded-For http header if you are behind a proxy or load balancer. There is no setting. It should start working once you activate it.

Change log:

* 3/21/2009 1.3: Fixed a bug causing...



How to display visitor's IP Address in a graphic on your website pages (or any other pages) with this simple PHP script. This script makes use of the GD image tools. Can easily be changed to match whatever colors you wish. To use just create an...



Update Status Proxy is a module which provides a work-around for Drupal's inability to handle proxy servers, which makes getting the update status of modules impossible when your site is behind a restrictive firewall.

It works by...



Blog Update Reminder is designed to remind a WordPress blog's author(s) with an email if they haven't made a blog post in a set number of days. When this plugin is installed, it automatically finds all authors (users) of the blog, and sets their...



show-visitor-ip-address used to show visitor ip address in single post only or as widget, every visitor can only saw his/her ip address and they could click on their ip address.

If the ip address is clicked, they will be redirected to...



This script displays the IP address, browser compatibility and referral page of a visitor.



This code demonstrates a simple way to validate IP address using preg_match() PHP function. This is a very simple code, that allows you to perform this task quickly with a minimum lines of code.



ABOUT

This module allows users to login first automatically via their IP address, instead of using a username / password.
HOW IT WORKS

When a user visits any Drupal page, IP Login:

1. Checks if the user is...



This code allows to get the IP address from which the user is viewing the current page.

User Review for Get user's IP address even when they're behind a proxy
- required fields
     

Please enter text on the image