Welcome to UltratechHost Forum, Guest. Please take the time to register if you haven't, or click

Tags
Author: UltratechHost - Replies: 0 - Views: 4583
DDoS protection with bandwidth shaping
1. Protecting your host from SYN floods

From Alexey's iproute documentation, adapted to netfilter and with more plausible paths. If you use this, take care to adjust the numbers to reasonable values for your system.

If you want to protect an entire network, skip this script, which is best suited for a single host.

It appears that you need the very latest version of the iproute2 tools to get this to work with 2.4.0.

#! /bin/sh -x
#
# sample script on using the ingress capabilities
Author: UltratechHost - Replies: 0 - Views: 2949
Protect Your Bandwidth From Hotlinking Images
If you are hosting your own images, it is important to safeguard your bandwidth by preventing others from hotlinking your images. In this tutorial, we will guide you how to do that by writing certain codes in your .htaccess file.

 
Step 1 – Copy and paste the following code into your .htaccess file and place it in your public_html foler. Replace “mydomain.com” with your own.


[code]RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.co