Cpanel Disable mod_security2 for a single domain

No Comments

Mod_security is an open source Apache module.

This can be considered as firewall for web applications. It secures the system from the attackers.

The following steps can be used to disable mod_security2 rule for one domain in cPanel servers.

1. Make the directory “/usr/local/apache/conf/userdata/std/2/username/domain.com

2. Create a file “vhost.conf” in the above location

3. Add the following lines :

———-

<IfModule mod_security2.c>

SecRuleEngine Off

</IfModule>

———-

To disable mod_security2 for a particular location :

———

<LocationMatch specify_the_path_here>

<IfModule mod_security2.c>

SecRuleEngine Off

</IfModule>

</LocationMatch>

———

To disable a particular mod_security2 rule :

———

<IfModule mod_security2.c>

SecRuleRemoveById give_ruleID_here

</IfModule>

———

Run the following script after making the changes.

———

/scripts/ensure_vhost_includes --user=username

———

This script will uncomment the following line in apache configuration and restart apache.

———–

Include “/usr/local/apache/conf/userdata/std/2/username/domain.com/*.conf”

How to reset Hay Day…without resetting your device

No Comments

Finally figured out how to reset Hay Day – and this can be done multiple times without resetting your entire iPhone/iPad! These are the steps I followed – you can probably shorten the steps – but I quit/restarted more than once to make sure its working the way I expected

Here’s the Trick – You need a spare iOS device (iphone, ipad, ipod) that’s never played Hay Day Before (or a new device, or one that has recently been reset with Erase all content).

For these instructions – Let’s say you want to reset Hay Day on your iPhone (your main device), and you have an iPad that’s never played Hay Day Before (the spare one we will use to create a new farm). And for discussion’s sake, let’s call your GameCenter account “ABCD”

iPhone (device where you want to reset Hay Day):
———————————————————
Quit Hay Day on your iPhone
Log Out of ABCD in Game Center on your iPhone (Settings/Game Center)

iPad (never played Hay Day before):
——————————————

  • Log in to the ABCD Game Center account though Settings/GameCenter
  • Start Hay Day (or install it and start it)
  • The game will be NEW – starting with a video
  • Hay Day will access Game Center…and you will see a GameCenter Alert saying something like this. “We found another farm attached to this Game Center Account. Do you want to Load it?” : “YES Load Game” or “No, Keep Current Game”. Answer KEEP THE CURRENT GAME
  • To be safe – quit Hay Day – reload it – and make sure it comes up with the “new” farm without the Game Center Alert.
  • If everything looks good – go to settings/game center and put the iPad back to its normal Game Center account. You’re done with the iPad
  • Now – Game Center ABCD account holds a new Farm for me

iPhone:
———

  • Log in to ABCD account (Settings/Game Center)
  • Start Hay Day
  • GameCenter Alert will appear – “We found another farm attached to this Game Center Account. Do you want to Load it?”. Answer: LOAD THE GAME

That’s it! You now have a beginner’s farm on your iPhone without needing to reset the device