Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

How to secure ur config.php + small java script for addition security :)

Extacy plýs !!!
Joined
Nov 27, 2007
Messages
356
Reaction score
46
Java script to disable Right Click & Copy/Paste ( Mini addition )
Add between
<head>

</head>
in your main motherboard script :D (index.php)

Code:
<script type="text/javascript"> 
//below javascript is used for Disabling right-click on HTML page
document.oncontextmenu=new Function("return false");//Disabling right-click
 
 
//below javascript is used for Disabling text selection in web page
document.onselectstart=new Function ("return false"); //Disabling text selection in web page
if (window.sidebar){
document.onmousedown=new Function("return false"); 
document.onclick=new Function("return true") ; 
 
 
//Disable Cut into HTML form using Javascript 
document.oncut=new Function("return false"); 
 
 
//Disable Copy into HTML form using Javascript 
document.oncopy=new Function("return false"); 
 
 
//Disable Paste into HTML form using Javascript  
document.onpaste=new Function("return false"); 
}
</script>

How to secure ur config.php :) and make it not accessible to the Internet
Just open all .php files that request config.php and add before
Code:
/''/
That mean 1 folder back :p = and you can go back how much folder you want :) and config.php will be not accessible from the Internet.

Example

mA522EY - How to secure ur config.php + small java script for addition security :) - RaGEZONE Forums

k2Dzb1A - How to secure ur config.php + small java script for addition security :) - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Last edited:
Junior Spellweaver
Joined
Jun 28, 2008
Messages
191
Reaction score
220
Since javascript is mostly just client - side language (except node.js & other javascript server frameworks), this really wont help in securing the scripts. You should be doing routing in php to keep your files hidden from public completely.
 
Initiate Mage
Joined
Apr 16, 2015
Messages
2
Reaction score
0
First of all, Javascript have to include in bottom on page, never in head.
Second one, wtf securing with javascript? Please guys cut your ears off.

Did you ever heard about .htaccess? Gosh.
Guys search on google .htaccess modrewrite rules and your 'security' problem is gone.

All silkroad-frameworks i ever seen in this forum are shenanigans and i just saw really bad programmers around here.

please dont make your self a pro if you arent one.
 
Newbie Spellweaver
Joined
Jan 14, 2014
Messages
9
Reaction score
0
lol that does not help either, if u think about it more :))
 
Back
Top