Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Dec 2003
    Posts
    58

    Default BLOCK A DOMAIN access to my site

    HI

    there is possibility to block access to my site from a domain??

    ThIS domain insert my banner into site and every 2 seconds open 400 process and apache go down

    can i block this domain?

  2. #2
    Member bamasbest's Avatar
    Join Date
    Jan 2004
    Posts
    531

    Default

    Try...

    cPanel - IP Deny Manager

  3. #3
    Member
    Join Date
    Dec 2003
    Posts
    58

    Default

    just do it

    i deny a domain not an IP
    (refer)
    thanks

  4. #4
    Member bamasbest's Avatar
    Join Date
    Jan 2004
    Posts
    531

    Default

    Correct,

    You should be able to deny either an IP or a FQDN.

  5. #5
    Member
    Join Date
    Dec 2003
    Posts
    58

    Default

    THIS person insert into site DOMAINSITE.XX include to open my site

    http://MYSITE.com/php-bin/randomAd/b...ew.php?uid=xxx

    He has 200 access/sec., therefore my apache go down

    He don't delete this include , therefore i must block this refer


    i insert into .htaccess

    deny from domainsite.xx

    but nothing....

  6. #6
    Member
    Join Date
    Dec 2003
    Posts
    58

    Default

    i know precise REFER URL

    http://download.xxxxxxxx-tld/php-bin...mAd/banner.php

    therefore i must block this refer

  7. #7
    Member bamasbest's Avatar
    Join Date
    Jan 2004
    Posts
    531

    Default

    Hmmm...

    try editing your .htaccess to look something like this...

    <LIMIT GET POST>
    order deny,allow
    deny from www.sitename.com
    </LIMIT>


    see if that works?

  8. #8
    Member
    Join Date
    Dec 2003
    Location
    Maryland
    Posts
    98

    Default

    or block him our totally from your firewall, and don't even have httpd process his commands. simply drop the packets. more often than not, if it's a web server, it's got a static ip address.

    Do a ping and obtain the IP that way.

    Chew

  9. #9
    Member
    Join Date
    Mar 2004
    Posts
    204

    Default

    Hi Creazioni1,
    As bamasbest has suggested, you can block any domain by adding the LIMIT in the .htaccess file as follows,

    <Limit GET HEAD POST>
    order allow,deny
    deny from <Domain name you want to block>
    deny from <IP address of the domain>
    allow from all
    </LIMIT>

    You can generate code to block domains using the following link:
    http://htmlbasix.com/blockusers.shtml

    Regards,

Similar Threads & Tags
Similar threads

  1. how block FTP access to a user without him to withdraw access panel cpanel
    By ricardo.haas in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-20-2011, 12:42 PM
  2. redirect ALL access to ALL third name domain (*.site.com)
    By cmedia in forum New User Questions
    Replies: 4
    Last Post: 11-17-2008, 01:03 PM
  3. Host Access Control (block IP access)
    By meeti in forum New User Questions
    Replies: 5
    Last Post: 05-13-2008, 01:39 AM
  4. Can't access main domain site through ftp
    By Enquiry in forum New User Questions
    Replies: 0
    Last Post: 03-06-2006, 09:31 PM
  5. Replies: 4
    Last Post: 07-19-2003, 07:35 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube