mai62, my extension is a little different from that. It only changes the referer when the request comes from another host. I had your code already from
last year's thread. I actually based my extension on it, so thank you again for pointing me in the right direction.
mirny, I've finally found a way to do that. I didn't use your code, but it was helpful to exercise my brain a little.
I used a negative look-ahead; here's the working code:
referer_host = re.find(referer_host,[[(.*\.(?!biz|co|com|info|name|net|org|pro|edu|gov|int|mil|mobi))?(\w+\.\w+)]],2)
I'll post the full extension on another thread later on.