]> iEval git - www-offliberty.git/commitdiff
Set Referer header to bypass hotlinking protection
authorMarius Gavrilescu <marius@ieval.ro>
Fri, 4 Dec 2015 12:08:44 +0000 (12:08 +0000)
committerMarius Gavrilescu <marius@ieval.ro>
Fri, 4 Dec 2015 12:08:44 +0000 (12:08 +0000)
lib/WWW/Offliberty.pm

index 7b658f0978f8aca64107843298ae464d2371b269..b5b79188003d9cc44327f9edad544a79d06044b9 100644 (file)
@@ -12,7 +12,7 @@ use constant OFF_URL => 'http://offliberty.com/off54.php';
 use HTML::TreeBuilder;
 use HTTP::Tiny;
 
-my $http = HTTP::Tiny->new(agent => "WWW-Offliberty/$VERSION ");
+my $http = HTTP::Tiny->new(agent => "WWW-Offliberty/$VERSION ", default_headers => {Referer => "http://offliberty.com/"});
 
 sub off{
        my ($url, @params) = @_;
This page took 0.020401 seconds and 4 git commands to generate.