J.S. Posted April 25, 2014 Share Posted April 25, 2014 A global whitelist would undeniably be the worst option, it would be essentially ineffective and massively restrictive. If I want to display content from my website on my server, there shouldn't be anything in the way of that other than the player deciding for themself that they don't want to receive that content. The best option would certainly be for the game to send a request to the player to whitelist a page locally, with options to turn off the requests (accept by default) and turn off the browser altogether. Link to comment
ixjf Posted April 25, 2014 Share Posted April 25, 2014 J.S., unless I'm outdated, which I might be since I've been inactive for some time, the global whitelist is just a list of known safe websites that are always accessible, without the need for the user to allow the server to load it (Google, YouTube, Reddit, for instance) - the server may request the client to open any webpage. Link to comment
J.S. Posted April 25, 2014 Share Posted April 25, 2014 J.S., unless I'm outdated, which I might be since I've been inactive for some time, the global whitelist is just a list of known safe websites that are always accessible, without the need for the user to allow the server to load it (Google, YouTube, Reddit, for instance) - the server may request the client to open any webpage. Ah, that would be perfectly fine then. As long as there's no automatic exclusion for sites that aren't on the list, a whitelist would be okay. Link to comment
Woovie Posted April 25, 2014 Share Posted April 25, 2014 J.S., unless I'm outdated, which I might be since I've been inactive for some time, the global whitelist is just a list of known safe websites that are always accessible, without the need for the user to allow the server to load it (Google, YouTube, Reddit, for instance) - the server may request the client to open any webpage. Ah, that would be perfectly fine then. As long as there's no automatic exclusion for sites that aren't on the list, a whitelist would be okay. A global blacklist may exist too, but it would be for, say an exploit site, or a site we know has viruses, stuff like that. We wouldn't blacklist somecrappypornsite.com or whatever you feel like wanking to in MTA. Link to comment
Jaysds1 Posted April 26, 2014 Share Posted April 26, 2014 Lol, ya, that's basically for the player to decide on, but I think they wouldn't do that though, since the video may lag but anyways, A global whitelist would be very good, but as for the blacklist; who would be searching for sites with viruses and such? Link to comment
.:HyPeX:. Posted April 28, 2014 Share Posted April 28, 2014 Lol, ya, that's basically for the player to decide on, but I think they wouldn't do that though, since the video may lag but anyways, A global whitelist would be very good, but as for the blacklist; who would be searching for sites with viruses and such? Not searching, but servers could abouse and actually send viruses to the players. (Remember that if you open a direct file link it will be automatically downloaded, like my song in my bf3 server, eg: www.bf3-mta.tk/songs/war.mp3) Link to comment
Jusonex Posted April 29, 2014 Author Share Posted April 29, 2014 Downloading is disabled. Link to comment
Snow-Man Posted May 4, 2014 Share Posted May 4, 2014 what about opening only video, can we do that ? Link to comment
lopezloo Posted May 16, 2014 Share Posted May 16, 2014 getBrowserURL() doesn't work properly when I load local page first. For example I loaded "html/request.html" and went to YouTube via link - getBrowserURL() still return "html/request.html". Tested on latest build (r6424). Link to comment
J.S. Posted May 25, 2014 Share Posted May 25, 2014 what about opening only video, can we do that ? If I'm understanding correctly (I haven't worked with it yet), based on the fact that downloading is disabled you'd have to embed it into a webpage and load that through the browser. Fairly simple using HTML5 video. Link to comment
Snow-Man Posted May 26, 2014 Share Posted May 26, 2014 Can i create video using HTML then use getBrowserURL() ? Link to comment
Snow-Man Posted May 26, 2014 Share Posted May 26, 2014 And awesomium won't work for me When i use any function, i get error " a nil value " Link to comment
ixjf Posted May 26, 2014 Share Posted May 26, 2014 Just in case.. are you actually using the 1.4 Awesomium build that Jusonex provides in his wiki profile? Link to comment
Snow-Man Posted May 28, 2014 Share Posted May 28, 2014 Just in case.. are you actually using the 1.4 Awesomium build that Jusonex provides in his wiki profile? no give me link Link to comment
Jusonex Posted May 28, 2014 Author Share Posted May 28, 2014 getBrowserURL() doesn't work properly when I load local page first. For example I loaded "html/request.html" and went to YouTube via link - getBrowserURL() still return "html/request.html". Fixed If I'm understanding correctly (I haven't worked with it yet), based on the fact that downloading is disabled you'd have to embed it into a webpage and load that through the browser. Fairly simple using HTML5 video. Can i create video using HTML then use getBrowserURL() ? By 'downloading' I meant downloading files which are saved on your harddisk. If you want to play a video, you'll just have to load the website which embedds the video: loadBrowserURL(webBrowser, "https://www.youtube.com/watch?v=wZZ7oFKsKzY") give me link I uploaded a new build. You can find the link on https://wiki.multitheftauto.com/wiki/Us ... ow_to_test Link to comment
lopezloo Posted June 3, 2014 Share Posted June 3, 2014 No idea why but I can't play any (?) HTML5 video on latest build. Example url: http://youtube.com/tv/#/watch?v=5NV6Rdv ... =transport Link to comment
Jusonex Posted June 3, 2014 Author Share Posted June 3, 2014 The request system was broken during the last builds and has been fixed in the current. requestBrowserPages({"clients1.google.com", "www.youtube-nocookie.com", "gdata.youtube.com"}) ...should fix it. I'm going to add these pages (as wildcard) to the hardcoded whitelist in the next build. If you'd like to get a list of blocked pages, enable the developmentmode via setDevelopmentMode(true) and open the debugwindow (/debugscript 3). Link to comment
Snow-Man Posted June 8, 2014 Share Posted June 8, 2014 why when i download Awesomium files to MTA i can't extrait it, files got Problem Link to comment
Jusonex Posted June 8, 2014 Author Share Posted June 8, 2014 @DodHD: Sorry, my mistake...the server files are missing. You can download the latest build from: http://jusonex.net/public/mta/awesomium/r6533.zip @Snow-Man: Please try again with the latest build. If it won't work, try another archive extractor like 7zip (http://www.7-zip.org/download.html). Link to comment
Snow-Man Posted June 9, 2014 Share Posted June 9, 2014 @Jusonex, thanks, i used 7zip and i have got problem after pasting files in MTA folder check Screenshot Link to comment
Jusonex Posted June 9, 2014 Author Share Posted June 9, 2014 You're using an old 1.4 build. You can find the latest network module here: http://jusonex.net/public/mta/awesomium/net.dll (server) http://jusonex.net/public/mta/awesomium/netc.dll (client) Link to comment
Snow-Man Posted June 10, 2014 Share Posted June 10, 2014 hey @Jusonex, i downloaded netc.dll and net.dll but i have got alot of problems http://s23.postimg.org/kg690nhnv/php_Nb_Uy1_G.png http://s10.postimg.org/n6j7l6ydl/php_Gt_U2n_C.png http://s21.postimg.org/9fghd6isn/php_HGn_BXz.png i have more suggestions to Awesomium, i'll PM it to you Link to comment
Recommended Posts