[Date Prev][Date Next][Thread Prev] [Thread Next][Date Index] [Thread Index]

Re: One site fails in [check sites] with error 403


  • From: Justin Mann  
  • Date: Mon, 12 Feb 2007 00:55:24 +0100

Hi Gunnar,

it works, thanks!

btw:
Got revision:  $Id: ring.pm,v 1.171 2006/11/27 12:12:54 gunnarh Exp $

The statement below is in line 1770.
(Added  $useragent->agent('');  to line 1771)

Will this small change be uploaded to the source database?

Justin.


Gunnar Hjalmarsson wrote:
Justin Mann wrote:
I have a member website, which has the webring code built in under the Link http://www.geprellte-strukkis.de/images/webring/webring.html
If you click on the link, you can see that it works.

When I run the [check sites], I then get a error 403 Forbidden

Well, the site seems to not like requests from Perl scripts, but I believe you can fix it.

At line 1758 of revision 1.169 of ring.pm you find this:

    my $useragent = new LWP::UserAgent;

Try adding this code right after that line:

    $useragent->agent('');

/ Gunnar


Follow-Ups from:
Gunnar Hjalmarsson

References to:
WebRing
Gunnar Hjalmarsson
WebRing
Justin Mann
Gunnar Hjalmarsson

[Date Prev][Date Next][Thread Prev] [Thread Next][Date Index] [Thread Index]