adf.ly blocked by xbmc ??
#1
so making my own adfly resolver works all ok with python on desktop but for some reason xbmc will spit out different page than the one i run in python Huh

like its being blocked because of xbmc Huh

Code:
import re
import urllib2
import httplib
from socket import timeout





url='http://adf.ly/DYHwq'
req = urllib2.Request(url)
req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')
response = urllib2.urlopen(req, timeout=5)
data = response.read()
response.close()
matches = re.compile("var url = '(.*?)';").findall (data)
print matches
adlink = matches[0]
gourl = "https://adf.ly"+str(adlink)
req = urllib2.Request(gourl)
req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')
response = urllib2.urlopen(req, timeout=5)
data1 = response.read()
print data1
response.close()
reallink = re.compile('META HTTP-EQUIV="Refresh" CONTENT="0; URL=(.+?)">').findall (data1)
hosturl=reallink[0]
print hosturl
Reply
#2
Seems really strange and can't figure it out ?

this what i get instead

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Blocked</title>
<link rel="icon" href="/favicon.ico" type="/image/ico" />
<link rel="shortcut icon" href="favicon.ico" />
<link rel="stylesheet" type="text/css" media="screen" href="/css/styles.css" />
</head>
<body>
<center>
<br /><br />
<img src="/images/logo.png" /><br /><br /><br />

<p style="color:#ffffff; font-size: 14px;">There has been a problem with your request.</p>
<p style="color:#ffffff; font-size: 14px;">Please ensure you are not using any advert blocking software or browser extensions.</p>
<p style="color:#ffffff; font-size: 14px;">Add 'adf.ly' to your whitelist and restart your browser.</p>
<p style="color:#ffffff; font-size: 14px;">If you feel you are seeing this page in error, please <a href='http://adf.ly/contact.php'>contact us</a>.</p>

</center>
</body>
</html>
Reply
#3
Does xbmc block ads with urllib2 ?

If I parse an adfly link through python urllib2 the results is what I need

But parsing same code through xbmc urllib2 I get different result all the time
Reply
#4
Can any Admin or xbmc developer answer question please
Reply
#5
we dont filter anything
Reply
#6
Something is going on ?

Tested on all pcs and laptops

Elderado also gets same results

Run in python directly works ok

Run through xbmc and it doesn't ?

Seems very strange !!
Reply
#7
nothing is going on, your paranoia is kicking in

we could be loosing stuff along the line but no one is filtering anything
Reply
#8
Fixed arrrgggghhh

Bloody missed the s in http

Sorry guys
Reply

Logout Mark Read Team Forum Stats Members Help
adf.ly blocked by xbmc ??0