FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » problem with link checker
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: problem with link checker [message #179311 is a reply to message #179309] Wed, 03 October 2012 11:34 Go to previous messageGo to previous message
M. Strobel is currently offline  M. Strobel
Messages: 386
Registered: December 2011
Karma:
Senior Member
Am 03.10.2012 11:46, schrieb Helmut:
> Hello,
> I have written a php script whose function is to detect dead links on
> a website.
> unfortunately,(obviously) my ISP redirects invalid urls (or part of them) to a search site, so I get status 302 instead of 404.
> Even worse, in one case an invalid url (http://www.ajrccm.com)
> is also redirected to a search site (I don't know by whom) and I get
> the status 200 !
> Any idea how to solve this problem?
>
> thanx for your help, Helmut
>

1. Find a name server that does not spam DNS, see terminal log below.
2. on Linux I would not hesitate to install bind9, it's a one liner

/Str.
#
# host not found, okay
#
strobel@s114-intel:~> ping nonono.deee
ping: unknown host nonono.deee
#
# dig @ google nameserver, not found, okay
#
strobel@s114-intel:~> dig nonono.deee @8.8.8.8

; <<>> DiG 9.7.6-P3 <<>> nonono.deee @8.8.8.8
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 14380
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;nonono.deee. IN A

;; AUTHORITY SECTION:
.. 1800 IN SOA a.root-servers.net.
nstld.verisign-grs.com. 2012100300 1800 900 604800 86400

;; Query time: 92 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Wed Oct 3 13:27:20 2012
;; MSG SIZE rcvd: 104

#
# dig @ dnsadvantage, Spam!
#
strobel@s114-intel:~> dig nonono.deee @156.154.70.1

; <<>> DiG 9.7.6-P3 <<>> nonono.deee @156.154.70.1
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 644
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;nonono.deee. IN A

;; ANSWER SECTION:
nonono.deee. 600 IN A 92.242.144.2

;; Query time: 66 msec
;; SERVER: 156.154.70.1#53(156.154.70.1)
;; WHEN: Wed Oct 3 13:27:52 2012
;; MSG SIZE rcvd: 56

strobel@s114-intel:~>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: button to send an email
Next Topic: Is Symfony 2 on-topic in this newsgroup?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 12:01:23 GMT 2024

Total time taken to generate the page: 0.04441 seconds