![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Apr 2008
Posts: 47
Rep Power: 0
![]() |
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^ |
|
|
|
|
|
#2 |
|
Professional Programmer
Join Date: Mar 2005
Location: Glasgow, Scotland
Posts: 317
Rep Power: 4
![]() |
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?" |
|
|
|
|
|
#3 |
|
Programmer
Join Date: Apr 2008
Posts: 47
Rep Power: 0
![]() |
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^ |
|
|
|
|
|
#4 |
|
Programmer
Join Date: Apr 2008
Posts: 47
Rep Power: 0
![]() |
???
That many suggestions???
__________________
^c^ |
|
|
|
|
|
#5 |
|
Caffeinated Neural Net
![]() Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 1,009
Rep Power: 5
![]() |
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 |
|
|
|
|
|
#6 |
|
Professional Programmer
|
Re: IP address
This might help -> GOOGLE
__________________
JG-Webdesign |
|
|
|
|
|
#7 |
|
Programmer
Join Date: Apr 2008
Posts: 47
Rep Power: 0
![]() |
Thank you
Thank you guys I will follow your suggestions.
__________________
^c^ |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |