• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Dynamic Host Name lookup?

New Here ,
Dec 15, 2007 Dec 15, 2007

Copy link to clipboard

Copied

Ok, using CF 7.0.0, and I am familiar with cgi scope vars. Especially those that deal with ip of origin.

I want to be able to "trap" users who are using a specific provider. We have a hacker using a VPN that generates a dynamic IP but the reverse lookup is always the same. Is there way to perform a real time reverse lookup?

Quick enough to get a fast page load but also maintain a degree of security?

Perhaps an undocumented CGI var like namelookup(cgi.remote_addr) ?

Thanks!

TOPICS
Advanced techniques

Views

1.0K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 17, 2007 Dec 17, 2007

Copy link to clipboard

Copied

I'm using the component lg.cfc ("Coldfusion Ping, Traceroute, Dig, Whois Client") from www.maxnoc.com for DNS lookup. I think I found the component on the tag gallery. It seems reasonably fast but you'll have to test it and/or put a timeout on the CFINVOKE tag.

Here's what I ran to isolate the domain name:

<!--- Call lg.cfc for DNS lookup --->
<cfsavecontent VARIABLE="fullresults">
<CFINVOKE
COMPONENT="lg"
METHOD="nslookup"
parameter="#the_ipaddress#"></CFINVOKE>
</cfsavecontent>

<!--- parse out line we are interested in (just domain name) --->
<CFSET domain_name=REReplace(variables.fullresults, ".*name = (.*).<br>A.*", "\1")>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 17, 2007 Dec 17, 2007

Copy link to clipboard

Copied

This sounds marvellous ... but you gave confused me ... what does maxnoc have to do with it? Which tag gallery - on "our" web site here? maxnoc is the author?
Assuming tag library is now called Exchange I did a global search for lg.cfc and came up blank. I definately do not see a tag lib at maxnoc.
?
R

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Dec 18, 2007 Dec 18, 2007

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 18, 2007 Dec 18, 2007

Copy link to clipboard

Copied

is there a new and better way to do this in CF 8?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Dec 18, 2007 Dec 18, 2007

Copy link to clipboard

Copied

LATEST

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation