Different Webpages For Different People

From Hack Wars Wiki

Jump to: navigation, search
Information for the Multiple Websites for Different People Script
Script Multiple Websites for Different People
API HTTP
Cost $
Level
CPU Usage
Description Blocks Individual People from a Website and Shows them a Different Site With HideStore() Enabled
Output "Unfortunately, You have been banned :("


//Enter
int main(){
string banfile="NAMEOFLOG";
string visitor=getVisitorIP();
for(int b=0;b<countLines(banfile);b++) {
	if (readLine(banfile, b)==visitor) { 
		hideStore();
		break;
	}
 
}
 
if (readLine(banfile, b)==visitor) {
replaceContent("website", readFile("BANFILE");
}
else replaceContent("website", readLine("ALLOWFILE");
 break;
}
 
// Exit
int main(){
 
}
// Continue
int main(){
 
}

Input the players ip into the BanLog to ban them from viewing the store and the OK version of the website. Your site for either goes in either BANFILE or ALLOWFILE


On your Site Editor you need to have the following for it to work.

<html>
<head>
</head>
<body>
<?website?>
</body>
</html>
Personal tools