Raised This Month: $51 Target: $400
 12% 

WebLync 0.0.13 - A MOTD redirection service


Post New Thread Reply   
 
Thread Tools Display Modes
SlavON
Junior Member
Join Date: Jul 2015
Location: Belarus
Old 06-17-2017 , 21:50   Re: WebLync 0.0.5 - A working MOTD redirection service for CS:GO
Reply With Quote #61

you can choose all servers for creating links?
for every uncomfortable
SlavON is offline
Send a message via Skype™ to SlavON
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 06-18-2017 , 00:35   Re: WebLync 0.0.5 - A working MOTD redirection service for CS:GO
Reply With Quote #62

Features awaiting implementation
- Add global commands for Steam accounts that replicate to all owned servers
__________________
Neuro Toxin is offline
KnoXviLLe
Senior Member
Join Date: Nov 2011
Old 06-18-2017 , 06:22   Re: WebLync 0.0.5 - A working MOTD redirection service for CS:GO
Reply With Quote #63

Quote:
Originally Posted by asdfxD View Post
edit weblync.sp, remove some lines and recompile.

PrintToChat(client, "[WebLync] Requesting link `%s`...", linkname[3]);
PrintToConsole(client, "[WebLync] Requesting link `%s`...", linkname[3]);

PrintToChat(client, "[WebLync] Requesting custom link...");
PrintToConsole(client, "[WebLync] Requesting custom link...");

PrintToChat(client, "[WebLync] Opening Link...");
PrintToConsole(client, "[WebLync] Opening Link...");
...
Work.Thanks
__________________
Success is the ability to go from one failure to another with no loss of enthusiasm.

KnoXviLLe is offline
daleGEND
AlliedModders Donor
Join Date: Feb 2005
Location: USA
Old 06-18-2017 , 11:09   Re: WebLync 0.0.5 - A working MOTD redirection service for CS:GO
Reply With Quote #64

I'm just curious. What about webshortcuts is broken? Mine seems to be working OK.
__________________
Bor3d Gaming - A Mature Online Gaming Community

Feel free to add me on STEAM as well: https://steamcommunity.com/id/b0r3d
daleGEND is offline
good_live
AlliedModders Donor
Join Date: Oct 2013
Old 06-18-2017 , 11:45   Re: WebLync 0.0.5 - A working MOTD redirection service for CS:GO
Reply With Quote #65

Quote:
Originally Posted by daleGEND View Post
I'm just curious. What about webshortcuts is broken? Mine seems to be working OK.
Have you tried to open different links in the same session?
good_live is offline
daleGEND
AlliedModders Donor
Join Date: Feb 2005
Location: USA
Old 06-18-2017 , 13:27   Re: WebLync 0.0.5 - A working MOTD redirection service for CS:GO
Reply With Quote #66

Quote:
Originally Posted by good_live View Post
Have you tried to open different links in the same session?
Oh, I did not notice that. Thanks for pointing that out to me good_live
__________________
Bor3d Gaming - A Mature Online Gaming Community

Feel free to add me on STEAM as well: https://steamcommunity.com/id/b0r3d
daleGEND is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 06-18-2017 , 20:01   Re: WebLync 0.0.6 - A working MOTD redirection service for CS:GO
Reply With Quote #67

Version 0.0.6
- Added translation file
- Added setting to disable client messages in `cfg/sourcemod/weblync.cfg`
- Patched WebLync_OpenUrl
__________________

Last edited by Neuro Toxin; 06-19-2017 at 05:54.
Neuro Toxin is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 06-18-2017 , 21:36   Re: WebLync 0.0.6 - A working MOTD redirection service for CS:GO
Reply With Quote #68

I've now completed Global Links support via the website.

This doesn't require a plugin update!

You can access Global Links via the Global Links tab on the website.

Server Links VS Global Links
- Global Links are downloaded by all your registered servers.
- Server Links are downloaded by the registered server.
- Server Links override Global Links!
__________________

Last edited by Neuro Toxin; 06-18-2017 at 21:37.
Neuro Toxin is offline
WhiteThunder
Junior Member
Join Date: Mar 2015
Old 06-19-2017 , 04:25   Re: WebLync 0.0.6 - A MOTD redirection service
Reply With Quote #69

I have also been having problems opening web pages, so I made a solution similar to how this plugin works. While experimenting with it, I found some interesting things out about how the problem works and a fairly simple way to workaround it.
  1. Opening the first web page (since connecting to the server) works as expected and loads the requested URL. It also caches the domain of the request.
  2. When the client closes the web page, the last page they were on is cached, regardless of where they navigated to (could be another domain).
  3. When the client opens another web page, if the requested URL has the same domain as the cached domain, it simply navigates them to the last page they were on (note: it reloads that page).

This seems to be the behavior for both CS:GO and TF2. However, in CS:GO, since the initial page is hidden and just opens a popup, this means that attempting to open another web page will simply open the same initial page which just re-opens the same popup as before. The popup itself does not have this limitation, so a service that gives you a random popup URL would work fine.

Now comes the workaround. If the next web page requested is on a different domain than the cached one, the previously cached values are replaced. This means you can bounce between two redirect/popup domains and the client will be sent to the desired web pages without having to implement tokens and back-end state.

For example, in order to send a client to arbitrary web pages 4 times, you could send them to these imaginary addresses:

Code:
http://mysite.com/popup.php?url=http://example.net/a
http://mysite2.com/popup.php?url=http://example.net/b
http://mysite.com/popup.php?url=http://example.net/c
http://mysite2.com/popup.php?url=http://example.net/d
Note: This only works with domains, not subdomains. For those who don't have 2 domains, a 3rd party service can probably provide that for most users. The plugin simply needs to keep a boolean flag for each user (which it will toggle each time) to determine which domain to use.

Last edited by WhiteThunder; 06-19-2017 at 04:27.
WhiteThunder is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 06-19-2017 , 04:52   Re: WebLync 0.0.6 - A MOTD redirection service
Reply With Quote #70

You need the servers to send the end point URL to the redirect service to get a proper work around.

1. Client uses server command for a URL
2. Server sends URL to redirection service with a qualifier like a SteamID
3. Server receives response that the request has processed / store to a database
4. Server sends MOTD request to client with the qualifier
5. Client connects to redirection service with the qualifier
6. Redirection service reads end point URL from step 2
7. Client redirects to requested end point

Eg: The client always sends the same qualifying URL such as: http://weblync.xxxxxxxx.com/redirect.php?SteamId=<SteamID>
__________________
Neuro Toxin is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode