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 article in details handles the Love and relationships aspects of zodiac sign Leo or Simha rashi people. On what their preferences are and what they do not like. Or How they do love etc.
The article shares the lucky dates and not so lucky dates for love and relationships.
It also looks at the Love relationships of zodiac sign Leo or Simha rashi people with all the other zodiac signs, right form Aries or mesha rashi to Pisces or Mithuna rashi.
Leo LOVE Horoscope:
The zodiac sign Leo or simha rashi people are a royal partner to have 🙂 for anyone.
The zodiac sign Leo or Simha rashi people are friendly and passionate.
They Love physical contact and also moving around in loving relationships just like a Lion :).
Their partner would love to have them .
But the only concern is zodiac sign Leo or simha rashi people being too egoistical and quickly hurt in ego.
zodiac sign Leo or simha rashi people are truthful and honest regarding their emotions which any partner would love to have.
zodiac sign Leo or simha rashi people try to speak with love and care and come out of their own self- and they will have a smooth love life.
Their short-term affairs may go on well- with a nice and compassionate partner as they are 🙂 always.
but for long term one is they might face some basic difference of opinions and coldness in between.
Leo Man Or Leo Women as a Lover :
The zodiac sign Leo or simha rashi people are a ruler and leader even in the matters of love.
The zodiac sign Leo (lagna) or simha rashi people would love to dominate matters- have fun and enjoy physical intimacy ;).
A Lion or Lioness does not take any other Lion or Lioness.
So,the zodiac sign Leo or simha rashi people need full freedom in love.
If there is fun, independence and change and good sex in a relationship zodiac sign Leo or simha rashi people would be fine.;)
How would be love matters for zodiac sign Leo or simha rashi people come out based on their Horoscope ?
The blessed sign of Jupiter or Guru or Sagittarius rules the 5th bhava or the Horoscope of zodiac sign Leo or simha rashi people.
So over all despite their tough ;0 nature gives them blessing in the matter of love.
also, their love matters could expand and grow very well 🙂 due to dev Guru Jupiter ruling the mool trikona sign sitting there in n 5th for zodiac sign Leo or simha rashi people.:)
but sure, the Sagittarius sign or dhanu rashi has the malefic Saturn(Shani) ruling the 8th sign Scorpio or vrishchika rashi and also the next sign is Capricorn or makara rashi that is ruled by Saturn or shani dev.
so this creates an environment of fights and dryness in matters of love for zodiac sign Leo or simha rashi people.
The fights and passion are there due to mars or mangal and also Saturn or shani creates dryness in relationships for 🙁 for zodiac sign Leo or simha rashi people.
Only the Gemini sign or the mithuna rashi aspects the Jupiter sign of Sagittarius or dhan rashi in the 7th aspect.
So, this gives some fun and also duality and duplicity by zodiac sign Leo or simha rashi people in the love matters. 🙂
also, it adds to some more fun and frolic apart from passion , aggression, and fights in zodiac sign Leo or simha rashi people love life.:)
SUMMARY of Love or relationships Horoscope for zodiac sign Leo Or Simha rashi people?
(a) With Aries or mesha rashi people they both are passionate and want to dominate. So high passion and love and also hate relationships .:)
(b) Taurus or vrishabha rashi are sensitive and caring so they may compromise with zodiac sign Leo Or Simha rashi people.
(c) with Gemini or mithuna rashi people, Gemini people are jumpy and change loving and so are zodiac sign Leo Or Simha rashi people. so that we they connect well. so is Gemini OK for fun with them:). but zodiac sign Leo Or Simha rashi people could get too dominating at times. 🙂
(d) Cancer zodiac sign or Karat rashi people are very sensitive and would generally care for zodiac sign Leo Or Simha rashi people. but the latter also has to care for their emotions.
(e) The zodiac sign Leo Or Simha rashi people on one side and zodiac sign Leo Or Simha rashi people on other side is a fore fire combination.:) They both are loving and passionate and may move out with fun. also do business well, but strong ego issues or control issues are bound to come in.
(f) The zodiac sign Virgo people are caring, intelligent and home oriented as well so would handle the jumpiness and dominance of zodiac sign Leo Or Simha rashi people fine.
(g) The zodiac sign Libra Or Tula rashi people are caring and balanced, so handle the ups and downs in behavior of zodiac sign Leo Or Simha rashi people well. 🙂 but sure once they or Libra people decide to fight back, they will fight strong.
(i) The zodiac sign Scorpio Or Vrishchika rashi people are fighters and so are zodiac sign Leo Or Simha rashi people. so unless this aggression and passion in well directed, strong fights between them in love matters may come up.
(j) The zodiac sign Sagittarius Or dhanu rashi people are dignified and have a basic ego 🙂 so does zodiac sign Leo Or Simha rashi people have fair ego. so this ego management needs care. else both would enjoy moving out in jungles and having full fun.
(k) The zodiac sign Capricorn Or Makar rashi people are disciplined but would resist the go tantrums of the zodiac sign Leo Or Simha rashi people. so that could be a cause of conflict. so is the control or power between the two a cause of conflicts in love matters.
(l) The zodiac sign Aquarius Or Kumbha rashi people are picky but sensitive and zodiac sign Leo Or Simha rashi people may at times impose themselves. so this has to be handled well in love relate matters.
(m) The zodiac sign Pisces Or Meena rashi people are highly sensitive and imaginative, so they would travel and have fun well with zodiac sign Leo Or Simha rashi people. but the Leo zodiac sign has to care of sensitivity of the zodiac sign Pisces or meena rashi people
Leo Lover Good Dates For Love & Romance:
1,19,12, 27,28,30 Leo Lover Dates Of Caution For Love & Romance:
9,18(hard date), 27, 8, 17,7,26 Leo Lover Lucky months For Love & Romance:
April, January , December
November(mixed effects) and August would be fair. Leo Lover – which sun signs are compatible with your inner love nature
Aries, Capricorn to some extent- as it is earth sign , December( fire sign)
November(mixed effects) and August would also be fair.
Know The intimate secrets Of Your Lover and Your True Score of Mental,Emotional,sexual and Family Compatibility !Get to Know Month by Month Changes in Your LOVE & ROMANTIC Life for (coming Next 12 months), with vivid Description and Graphs. As a BONUS Get FREE Remedies to Enhance Your Relationship, Know Your LOVE KARMA INDEX and also about Powerful Amulet/Yantra to attract & Retain Your Love! Get Your Detailed & Personalized LOVE Horoscope Predictions Here!CLICK HERE!!!