php - How to block all users from a site in case of emergency? -


i'm developing game in php+mysql hosted in shared web hosting.

i'm concerned of security, because in games common people try cheat or broke game.

until now, have tested xss, sql injection, check permissions of folders, secure passwords, ... well, know limitations , want prepared in case unexpected happens (i don't know, maybe techique don't know, or check miss, guessed password ...)

if realize of of this, first action think should block access users, isolate site , check , repair bug. (it's free game, think can afford downtime). how can this?

you can make .htaccess file in root of webserver contents:

order deny,allow deny allow 192.168.1.1 -- here ip 

it block requests except mentioned ip


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -