Search the Community
Showing results for tags 'referrer'.
-
Hi. I am trying to create an embedded ie window and have successfully done so. First I change the site to google.com (need to navigate before i can write html to the embedded window) Then i use _IEDocWriteHTML to make an embedded youtube link. The problem is I get an error when trying to play the song -> So I tried googling this and it seems like I need to specify a Referer or youtube will block me(on certain videos) I once again turned to google and found this thread https://www.autoitscript.com/forum/topic/165108-ie-referrer/ and this snippet of code $oIE.Navigate2("http://whatismyreferer.com", Default, Default, Default, 'Referer: "newwebsite.com"')but I am not quite sure what I should fill in here. I have never heard of referer before this problem occoured, but isn't it what tells youtube where the user watching the video came from? how can i specify this when it is just a script running? this is the code i use to build the html i use to create the embedded link to youtube local $buildHtml = "" $buildHtml &= "<head>" & @CRLF $buildHtml &= "<body>" & @CRLF $buildHtml &= '<iframe width="300" height="300" src="https://www.youtube.com/embed/'& $split[1] &'?rel=0&showinfo=1" frameborder="0" allowfullscreen></iframe>' $buildHtml &= "</body>" & @CRLF $buildHtml &= "</head>" & @CRLFsplit[1] contains the id of the video. I would like some help to how I can resolve this and maybe an answer to if my understanding of a referer is correct(and/or maybe a more in depth answer)?