Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 26th, 2008, 11:08 AM   #1
Logical1
Programmer
 
Logical1's Avatar
 
Join Date: Apr 2008
Posts: 47
Rep Power: 0 Logical1 is on a distinguished road
Question IP address

How can one find out if there are links from other site's to one's site and get their IP address to stop them?
I did some search and apparetnly this is called referer. But it is not clear that the IP is the visitor or the site?
I mean:
Let's say web site www.annoyingjunkads---.com has a link to my page at www.mysite---.com/list.php

I Know I can get the IP of the visitors to that page easily. But that would be the IP of visitor not the site.

Is there a way to get the IP of the site (in this case www.annoyingjunkads---.com) as visitors from that site click ont the link and comes to list.php?
Thanks in advance.
L1
__________________
^c^
Logical1 is offline   Reply With Quote
Old Jun 26th, 2008, 12:07 PM   #2
mackenga
Professional Programmer
 
Join Date: Mar 2005
Location: Glasgow, Scotland
Posts: 317
Rep Power: 4 mackenga is on a distinguished road
Re: IP address

The IP of their site is reasonably easily found and is unlikely to change; just do:

nslookup www.annoyingjunkads---.com

at the command prompt (Windows or Linux, and maybe other platforms). You should get the server IP; you can then look out for this. It's not a perfect solution because virtual hosts mean you might block links from other sites too.

Also, the HTTP referer header is not reliable; a lot of browsers won't send it for privacy reasons. None of this really solves the essential problem - anyone can create a link anywhere they like because you don't really have control of that link. What you're trying to do is block users who try to follow that link, which seems a shame because they're just innocent bystanders after all.
__________________
"I'm not a genius. Why do I have to suffer?"
mackenga is offline   Reply With Quote
Old Jun 26th, 2008, 4:36 PM   #3
Logical1
Programmer
 
Logical1's Avatar
 
Join Date: Apr 2008
Posts: 47
Rep Power: 0 Logical1 is on a distinguished road
more info

Thanks for the answer but let me clarify a few things my questions was not very clear:
I gave the annoyingjunads---.com as an example. I would not even know who is linking so I can not manually check their Ip.
The issue is that I want to make a logo and send it to some member web sites (let's say 40 web sites in my area) the logo would signify that they are memebr of something and if their visitors click on the logo they are sent to a PHP page where some information or severices are provided. This part is done.
What has to be done now is that I do not want other people to simply copy that logo and put it on their own web sites and establish a link. I thought one way was to check the IP of whoever comes to that page with the domain name of memeber site. If it was not the same deny them the free service.
If you can suggest any solution to this beer/coffee/tea is on me.

L1
__________________
^c^
Logical1 is offline   Reply With Quote
Old Jun 28th, 2008, 9:48 AM   #4
Logical1
Programmer
 
Logical1's Avatar
 
Join Date: Apr 2008
Posts: 47
Rep Power: 0 Logical1 is on a distinguished road
???

That many suggestions???
__________________
^c^
Logical1 is offline   Reply With Quote
Old Jun 28th, 2008, 6:10 PM   #5
lectricpharaoh
Caffeinated Neural Net
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 1,005
Rep Power: 5 lectricpharaoh will become famous soon enough
Re: IP address

There's no simple solution to this. A link is just that, a pointer to a web resource. If you want to protect access to that resource, then what you're going to need to do is establish some kind of login/password protection on it. This means that it's no longer as simple for the user as clicking on a link, however; they'll need to acquire the username/password combination, probably through some kind of registration.

Something like you envision could be done using a combination of server-side scripting and web services (you provide some authentication service to the third-party sites, which allows the user access to the resource on your site), but it would take work. It would also take the cooperation of each and every third-party site that you want to have this logo/link.
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is offline   Reply With Quote
Old Jun 28th, 2008, 8:54 PM   #6
Wizard1988
Professional Programmer
 
Wizard1988's Avatar
 
Join Date: Oct 2005
Location: Chitown
Posts: 417
Rep Power: 3 Wizard1988 is on a distinguished road
Send a message via AIM to Wizard1988
Re: IP address

This might help -> GOOGLE
__________________
JG-Webdesign
Wizard1988 is offline   Reply With Quote
Old Jun 29th, 2008, 2:23 AM   #7
Logical1
Programmer
 
Logical1's Avatar
 
Join Date: Apr 2008
Posts: 47
Rep Power: 0 Logical1 is on a distinguished road
Thank you

Thank you guys I will follow your suggestions.
__________________
^c^
Logical1 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Count number of occourences of a IP address in a log file. lynxus Perl 13 Dec 22nd, 2007 11:26 AM
Hexadecimal Memory Address Question 357mag C++ 1 Jul 8th, 2007 9:19 PM
Finding the DNS that an IP is associated with sixstringartist Coder's Corner Lounge 7 Jun 25th, 2007 10:34 AM
ip question :/ rsnd C++ 14 May 20th, 2007 11:06 PM
an address bar(sort of) arod199113 HTML / XHTML / CSS 5 Sep 8th, 2005 4:49 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:01 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC