Results 1 to 3 of 3

Thread: Block an IP

  1. #1
    Join Date
    Nov 2008
    Posts
    104

    Default Block an IP

    Hi All,

    Forgive me if this is a dumb question, just can't see a simple answer. I have several of my sites having images being leached from, I know the site causing the issues and the IP address (not sure if I should post those details or not). Let me know...

    I have leach protect turned on in cPanel. I have various custom htaccess files for different sites and have changed some to so they do not allow leaching. Now checking the logs, they do indeed work returning a 404 when any images are loaded.

    I have blocked their site in the iptables as well with:

    iptables -I INPUT -s a.b.c.d/24 -j DROP

    Obviously this will drop anything coming directly from them, the htaccess will return 404's but how do I just drop traffic and not reply?

    i.e. J.Blogs loads the offending page on the other.site website. The site refers to an image on my site. my site returns a 404. I don't want to return anything.

    Is this possible and how?

    I know returning 404's is low bandwidth but this site is hitting me a LOT and I dont want to give any of my bandwidth to them.

    Regards,
    Nick

  2. #2
    Join Date
    Mar 2007
    Posts
    332

    Default

    Hello Nick,

    I will suggest you to install CSF firewall on your server and add the suspicious IP in the deny list of the firewall. Once you denied the IP address in the firewall they will not able to connect your server and get timeout for your site/server.
    RsyNc.
    VPS Support Team

    VPS Hosting ||Cloud Hosting 100% UPTIME!
    Follow eUKhost on Twitter || Join eUKhost Community on Facebook
    MSN: johnr @ eukhost.com
    SKYPE: john_rodricks

  3. #3
    Join Date
    Nov 2008
    Posts
    104

    Default

    Hi Rsync,

    Thanks for that. Already done but didn't work. One of your techs, tried it and it seemed to work, but he also added route command t reject as well.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •