SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 01/08/2012, 03:53 AM   #1
Jeroen52
Gangsta
 
Jeroen52's Avatar
 
Join Date: Oct 2008
Location: The Netherlands
Posts: 532
Reputation: 28
Default Online Ingame Websites [0.1] by Jeroen!

This is no longer supported and won't work anymore.




Online Ingame Websites by Jeroen!
Okay, so what I have done this night, from 1 AM to 6 AM, is making some kewl but totally useless Filterscript.

What it does, my database stores fake domains, people can request the website location of the domain.
If you write sona-gaming.com it goes to sona-gaming.com/sites/sona.txt, or when writing domain.com it goes to sona-gaming.com/sites/domain.txt
Once it got the location, SA-MP is wasting a lot of resources to convert it and to show it in a textbox.
The fun of this, you can access websites on other servers, and people can add websites to all servers, without the files being on the server.

Example site (search.sa)


I made this just of the heck of creating a fake Domain Name Server.
People can add their own websites by:
  • Creating a txt file, writing somethin in it (max 20 rows and max 64 lenght)
  • Upload it to your webserver
  • Apply for a domain here: https://sona-gaming.com/u/domain, your domain will be added within 24 hours, most of the times even within a few hours, at ".txt file url" you do not need to paste the domain you want but you need to paste the location of your .txt file, for example "example.com/file.txt"
  • Your Site is published, but keep that file on your Webserver, because we ain't hosting it! You can edit it whatever you want because that is YOUR space.
VISUAL TUTORIAL


Curious but do not want to host yet? Just try out the .pwn file and explore the net!

COMMANDS: /website

DOWNLOAD: Version 0.1
PASTEBIN Version 0.1


||Popular sites: google.com (redirected to search.sa), domain.com .||
||Sites will be regularly updated at search.sa ||


Future Updates:
Just to let you know, we do not have anything that will notify you if the script is outdated, I will add it on a later version.
I am normally not releasing any scripts and I have never tried something like this.
I would appreciate help if there are coming a few Slave Servers soon if this becomes somewhat popular.
I will also add Variables that can be added to sites soonish.


DNS Lookup:
http://sona-gaming.com/API/dns.php?domain=search.sa
*Change search.sa to anything you want!*
It returns something like this:
CODE|DOMAIN|URL

Codes (for the people who need them):
0 -Everything is Okay
-1 -Redirection (If you enter the domain you may be redirected to another one, like google.com redirects to search.sa)
-9 -Domain not Found
-16 -Something went wrong, you possibly have nothing entered.
410 -Internal Server Error

For this you need sscanf2!

Credits:
Code:
SA-MP Team for a_samp and a_http
Y_Less for Sscanf2
DracoBlue for dcmd
Everyone who I forgot.
Everyone may edit this, if they keep the name of the original author ([SONA]Jeroen) in the script.
Everyone may make use of the SONA DNS Servers, if you do not flood it.

We are not held responsible for damaged computers because of injections, if I find malicious software on a domain I will remove it, as many domains will be previewed as possible.
__________________

Last edited by Jeroen52; 20/07/2014 at 04:26 PM.
Jeroen52 is offline   Reply With Quote
Old 01/08/2012, 03:57 AM   #2
DarkB0y
Huge Clucker
 
Join Date: Dec 2011
Posts: 378
Reputation: 36
Default Re: Online Websites

lol first time to see that but cool
__________________
DarkB0y is offline   Reply With Quote
Old 01/08/2012, 03:57 AM   #3
Jeroen52
Gangsta
 
Jeroen52's Avatar
 
Join Date: Oct 2008
Location: The Netherlands
Posts: 532
Reputation: 28
Default Re: Online Websites

Quote:
Originally Posted by X_Boy View Post
lol first time to see that but cool
Ingame websites, across servers!
__________________
Jeroen52 is offline   Reply With Quote
Old 01/08/2012, 04:21 AM   #4
Steven82
High-roller
 
Join Date: Nov 2009
Posts: 2,624
Reputation: 169
Default Re: Online Ingame Websites

Could improve over time, but it's a nice base. But as you said, I haven't tired it or anything, but if it uses A LOT of ram then I don't think many people will use it on their server.
Steven82 is offline   Reply With Quote
Old 01/08/2012, 04:24 AM   #5
Jeroen52
Gangsta
 
Jeroen52's Avatar
 
Join Date: Oct 2008
Location: The Netherlands
Posts: 532
Reputation: 28
Default Re: Online Ingame Websites

Quote:
Originally Posted by Steven82 View Post
Could improve over time, but it's a nice base. But as you said, I haven't tired it or anything, but if it uses A LOT of ram then I don't think many people will use it on their server.
Well when you use /website it calls it once, it does not have 1 sec timers or anything, it just uses a lot of heap memory because I honestly do not know how to process a lot of text efficiently.

Everyone may edit it, and re-release it if they keep the original author, I hope to make it more efficient that way.

EDIT: Edited the Main Post with a little more support.
__________________
Jeroen52 is offline   Reply With Quote
Old 01/08/2012, 12:43 PM   #6
Jeroen52
Gangsta
 
Jeroen52's Avatar
 
Join Date: Oct 2008
Location: The Netherlands
Posts: 532
Reputation: 28
Default Re: Online Ingame Websites

Edited the form to make it more clear, with Location we mean the location where the .txt file is, for example: sona-gaming.com/sites/domain.txt
__________________
Jeroen52 is offline   Reply With Quote
Old 01/08/2012, 03:47 PM   #7
Jeroen52
Gangsta
 
Jeroen52's Avatar
 
Join Date: Oct 2008
Location: The Netherlands
Posts: 532
Reputation: 28
Default Re: Online Ingame Websites

*Added Pastebin!*
__________________
Jeroen52 is offline   Reply With Quote
Old 02/08/2012, 07:24 AM   #8
IceMeteor
Big Clucker
 
Join Date: Nov 2011
Location: Indonesia
Posts: 141
Reputation: 20
Default Re: Online Ingame Websites

Cool idea, never think about this
IceMeteor is offline   Reply With Quote
Old 02/08/2012, 08:01 AM   #9
shaniyal
Huge Clucker
 
shaniyal's Avatar
 
Join Date: Jul 2012
Location: Pakistan
Posts: 466
Reputation: 43
Default Re: Online Ingame Websites

a problem it's giving an error C:\DOCUME~1\JTECHC~1\MYDOCU~1\DOWNLO~1\SITES(~1.PW N(5) : fatal error 100: cannot read from file: "a_http"

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
EVEN WHEN i opened ur's and compile it,it was giving the same error.
shaniyal is offline   Reply With Quote
Old 02/08/2012, 10:02 AM   #10
IceMeteor
Big Clucker
 
Join Date: Nov 2011
Location: Indonesia
Posts: 141
Reputation: 20
Default Re: Online Ingame Websites

Quote:
Originally Posted by shaniyal View Post
a problem it's giving an error C:\DOCUME~1\JTECHC~1\MYDOCU~1\DOWNLO~1\SITES(~1.PW N(5) : fatal error 100: cannot read from file: "a_http"

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
EVEN WHEN i opened ur's and compile it,it was giving the same error.
Use the pawno from newest version of SAMP, or simply add the a_http.inc to the \pawno\include
IceMeteor is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Odd network problems (Websites and Skype work, but Steam and Online games don't) [HLF]Southclaw Everything and Nothing 8 23/07/2012 08:55 AM
gfx websites iNorton Everything and Nothing 4 17/04/2012 10:28 PM
Websites? WardenCS Everything and Nothing 10 13/01/2010 01:39 PM
Websites. Waqqa General 1 05/05/2009 04:37 PM


All times are GMT. The time now is 10:28 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.