var $enable = true;
var $hits_limit_GET = 3; // hits limit for GET requests (per wpadtiddos_seconds_limit_GET second)
var $hits_limit_XHR = 3; // hits limit for XHR requests (per wpadtiddos_seconds_limit_XHR second)
var $seconds_limit_POST = 3; // seconds limit for POST requests
var $seconds_limit_AUTH = 3; // seconds limit for AUTH (Password) requests
var $visitor; // status of visitor = raw|cool|warm|hot
var $warm_level; // number of hits for last $seconds_limit seconds that cause visitor`s status turn to warm
var $auto = true; // block visitors by AntiDDOS
var $delay_time = 30; // seconds of delay of blocked visitors
var $block_cnet = true; // block all C class net.
var $cloudflare = true; // convert Cloudflare HTTP_CF_CONNECTING_IP to REMOTE_ADDR
var $send_header = false; // send "WP_AntiDDOS: yes" header for debug purposes
var $only_params_enabled = false; // Only Params feature enabled
var $only_params = 's'; // the only GET/POST params that trigger checkup
var $status, $error_msg;
var $conn; // mysql connection
var $hits = false; // actual hits number for current IP
var $cookie = ''; // wpantiddos cookie value that prevents anti DDOS processing
var $table_name = '';
var $pass_param = 'pwd'; // name of POST parameter that indentify Login (AUTH) request
var $delay_message = 'Our server is currently overloaded, your request will be repeated automatically in %s seconds';
var $delay_message_auth = 'Our server is currently overloaded, your request will be repeated automatically in %s seconds';
public function __construct()
$GLOBALS['wp_antiddos_instance'] = &$this;
$this->conn = mysqli_connect(DB_HOST,DB_USER,DB_PASSWORD);
$ok = mysqli_select_db($this->conn,DB_NAME);
if (!$ok) return false;
// plugin disabled
if (!$this->enable) return;
// current request is admin's one
if (isset($_COOKIE['wpantiddos']) && $_COOKIE['wpantiddos']==$this->cookie) return;
// detect request type and limits
if ($this->hits_limit_XHR=='ANY') return;
$request_type = 'xhr';
$hits_limit = $this->hits_limit_XHR;
$seconds_limit = wpadtiddos_seconds_limit_XHR;
elseif ($_POST && isset($_POST[$this->pass_param]) )
if ($this->seconds_limit_AUTH=='ANY') return;
$request_type = 'auth';
$seconds_limit = $this->seconds_limit_AUTH;
$this->only_params .= ' '.$this->pass_param;
$hits_limit = 1;
if ($this->seconds_limit_POST=='ANY') return;
$request_type = 'post';
$hits_limit = 1;
$seconds_limit = $this->seconds_limit_POST;
if ($this->hits_limit_GET=='ANY') return;
$request_type = 'get';
$hits_limit = $this->hits_limit_GET;
$seconds_limit = wpadtiddos_seconds_limit_GET;
$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP'];
$this->ip = $_SERVER['REMOTE_ADDR'];
$this->ip = substr($this->ip,0,strrpos($this->ip,'.')+1);
$this->warm_level = ceil($hits_limit/2);
$res = mysqli_query($this->conn,"SELECT count(*) kount FROM $this->table_name WHERE ip='".addslashes($this->ip)."' AND tstamp>".(time()-$seconds_limit)." AND type='$request_type'");
$row = mysqli_fetch_assoc($res);
$this->error_msg = 'Error detected';
$this->hits = @$row['kount']+1; // consider current request too
if ($this->hits==0) // if no hits from this IP
$this->visitor = "new";
$this->visitor = "hot";
$this->visitor = "warm";
$this->visitor = "cool";
// add current hit
mysqli_query($this->conn,"INSERT INTO $this->table_name SET ip='$this->ip', type='$request_type', tstamp=".time());
// cleanup ip list
$clear_time = max($this->delay_time,$seconds_limit);
mysqli_query($this->conn,"DELETE FROM $this->table_name WHERE tstamp<".(time()-$clear_time));
$this->error_msg = $e->getString();
$this->status = 'error';
if (!empty($this->error_msg) )
$this->status = 'error';
if ($this->auto && $this->visitor=='hot')
header('HTTP/1.0 503 Service Unavailable');
header('Status: 503 Service Unavailable');
header("Retry-After: ".($this->delay_time+1)); // submit form first if POST request
This very interesting article about cricket celebrity Virat Kohli and Bollywood actress Anushka Sharma in depth analyses their love life and also marriage based on various planetary energies in their kundli or horoscope.
It also looks at how Anushka Sharma and Virat Kohli love or fight 🙂 based on their sun signs as well and also their Numbers or Numerology.
It further looks at the marriage aspect of the two celebrities in the latter section of the article.
Virat Kohli solar Horoscope
Anushka Sharma Solar Horoscope
What attracts Virat Kohli and Anushka share to each other?
5 November 1988 = virat Kohli birth date
1 May 1988 (age 29)= Anushka Sharma’s birth date
Based on solar kundli or solar horoscope of Anushka Sharma. anushka Sharma has lagna or ascendant of Aries(Mesha rashi)- in her solar chart or horoscope(kundli),this is a very aggressive sign and also being the first sign of the zodiac is action oriented in nature.
It could also be aggressive and impatient. We must note that Anushka Sharma is birth number =1 a well- she is born on first date.
Based on solar kundli or solar horoscope of virat kohli, Virat at the other end is Libra, or the sign of Tula Rashi- the planet Venus rules the same and this is the planet of love and beauty- that makes him a lover of arts/beauty and yes women. Also makes him good looking.
In any kundli or horoscope, Venus or shukra is not a great friend of mars(Mangal dev), we know we heard news sometime of breakups etc between the couple due to vrishchika – also at the same time Venus and mars represent love for woman and men both.
Mars or Mangal is love and passion of or men and Venus is for women. Also, virat has opposite women’s love sign or rashi as lagan and Anushka Sharma has Aries(mesha) or mars the ruing sign for men in love.
This complementary nature of signs creates tremendous attraction between the couple despite the ups and downs that we have seen in the relationship.
Mars(Mangal) has number 9 and Venus number 6, 9+6 = 15 = 1+5= 6(Venus/shukra)= marriage- so due to this combination the relationships culminating into a healthy marriage is a high chance.
What could cause difference of opinions between virat Kohli and Anushka Sharma relationships?.
As discussed earlier the key planets for Anushka’s kundli or horoscope is mars(Mangal/mesha rashi) is the ruler and for virat’s kundli or horoscope Venus is the ruler for Libra or Tula lagna .
Mars and Venus are not friends as such, Venus is considered as a benefic in Vedic astrology and mars a malefic and also mars ruling the lagna in Anushka’s kundli does create a sort of Mangal dosha as well.
So based on her solar kundli as there is the seventh aspect to the seventh house- though not very strong as such. So virat kohli needs to guard on basic accidents etc while playing cricket and otherwise as I have suggested in other articles.
Virat has a more sobering influence of Venus and mars would make Anushka more on the aggressive side and yes action oriented to do family related stuff. Virat would find Anushka more aggressive in taking initiative in relationships.
The difference in approaches of the two could cause differences cropping up in married life.
Also, Anushka is number 1= sun/surya, so she wants to dominate the show and may be highly ambitious even after marriage, but virat on the other hand is number 5= mercury= budha, so he wants change and fun and new things. This could cause differences to crop in after marriage- which the couple must be careful about.
Virat may demand more of change and fun in life and Anushka may at times be more focused on career or other things in life and insist on own needs .
this could be a cause of conflicts in the couple GOD forbid, though we always wish them all the bets in life.
The year ahead 2018 for relationships of Virat Kohli and Anushka Sharma predictions ?
In the kundli or horoscope for Anushka Sharma, Jupiter or guru the lord of ninth and twelfth house for Anushka Sharma transits in the seventh house of hers. Jupiter carries more of blessing and some issues due to lordship of twelfth house.
so over all the year 2018 could be great for Anushka- with some hassles here and there coming up- but in control.
In the kundli or horoscope for Virat Kohli but for virat kohli as relationship rules his career relationships as well-as Jupiter in first house or bhava transit is generally not great.
but sure it got him married. But at the same time Jupiter gets the malefic energy of mercury or budha ruling the twelfth house- so over all this could be a bit emotionally demanding time for virat kohli.
He must take special care in March ending/April and yes September 2018 to guard on issues in relationships to do with his job or career or also his new relationships with Anushka Sharma.
With some conscious care and upayas/remedies matters would come in control and he would be in the safe zone enjoying life to the fullest extent.
The relationship of Anushka Sharma the Bollywood star and virat kohli the cricket or IPL star- why is it so special?
The Bollywood star Anushka Sharma and the Indian Cricket – IPL star virat kohli of world fame/celebrities in their own areas got married this year on 11th December 2017 In a private function in Italy.
Like for films/Bollywood (Anushka Sharma is the Goddess) and cricket is Virat Kohli’s arena or playground.
Anushka started her film career or debut in the year 2008, and is one of the most popular and highest paid actress of the Mumbai film industry.
She got her break in the film “ rab ney bana di Jodi” opposite to the famous actor shah rukh khan.
On the other hand virat kohli is a cricketer of international repute. He plays with right hand and ranked as world’s best athlete by the ESPN.
He plays as part of royal challengers Bangalore(IPL= Indian premier league) and is the team captain for several years.
Virat Kohli has been dating or in love with the Bollywood actress Anushka Sharma right from the year 2013. The couple soon got a nickname a combination of both name virat + Anushka as virsuhka.
The relationships of virat and Anushka was very hot and popular in the Hindi movies and much talked about along with rumours about marriage/breakup etc
They finally got married on 11 December 2017 in a highly private function in Italy, Florence.