How can I block access that does not pass through the domain?
Example:
My domain is www.domain.com
My IP is: 111.1.1.1.1
So when they try to access (or attack, attack ddos) my site through IP 111.1.1.1.1 the connection will be denied (to avoid ddos/spam).
Im using php script but I need add it directly on litespeed configuration...
Script that Im using today (io index.php):
Example:
My domain is www.domain.com
My IP is: 111.1.1.1.1
So when they try to access (or attack, attack ddos) my site through IP 111.1.1.1.1 the connection will be denied (to avoid ddos/spam).
Im using php script but I need add it directly on litespeed configuration...
Script that Im using today (io index.php):
PHP:
if($_SERVER['SERVER_NAME'] == "1111.1.1.1.1") {
exit();
}