SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    Extremists Beware! Rockrz's Avatar
    Join Date
    Mar 2001
    Location
    In God's Country!
    Posts
    1,317
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can CGI/Perl do this???

    How do I block an IP number of someone who is a real a** from viewing my business website?

    He's using Roadrunner, so I'm hoping his IP number should be fairly constant.

    Any ideas on how to accomplish this and/or where to find a script that can do this would be greatly appreciated!

  2. #2
    SitePoint Evangelist azizur_rahman's Avatar
    Join Date
    Nov 2001
    Location
    London, UK
    Posts
    502
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    im sure it is possible.

    you seems to be thining the opposite of what other thinks, everyone wants people to come and you want to block.
    Azizur Rahman
    Web Application Developer

  3. #3
    SitePoint Zealot
    Join Date
    Nov 2002
    Posts
    156
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Also look at using a .htaccess file. Basically you would put

    DENY the offending IP address

    and load it up to your site.
    Richard @ www.e3servers.com
    Multiple Domain Hosting & Web Hosting (Unlimited Domains)
    Reseller Hosting -- 30-Day Money Back Guarantee

  4. #4
    Fully Sweet Car noddy's Avatar
    Join Date
    Aug 2002
    Location
    Perth, Western Australia
    Posts
    759
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    blocking

    I would not personally do this because you are still able to block out other users who may have the same IP but on another network so I would not reccomend blocking this person.

    What is the reason you want to block one indvidual?

  5. #5
    SitePoint Member
    Join Date
    Dec 2002
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    First time poster so pardon my url posting etiquette...

    The following script is set up to block out a user based on their domain name. However, you can set it up for IPs too by changing REMOTE_HOST to REMOTE_ADDR in your config file.

    http://www.kastle.net/products/hostredirect/

    I tested the results of the script and it does block out domains as well as IPs.

  6. #6
    SitePoint Enthusiast eych's Avatar
    Join Date
    Nov 2002
    Location
    Moscow, Russia
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by roneill
    Also look at using a .htaccess file. Basically you would put

    DENY the offending IP address

    and load it up to your site.
    I absolutely agree. This situation can only be solved by using server software restrictations (ie .htaccess if you are using Apache).

    You CAN do it in Perl, but you can do it on the application level only. For example, if you have forums software installed on you site, you can theoretically ban a user with a certain ip from using this software, but NOT from using your whole site.

    Look into .htaccess bases solution.
    Sergey Smirnov
    One of the Stuffed Guys
    http://www.stuffedguys.com


Bookmarks

Posting Permissions

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