Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 21
  1. #1
    New Coder
    Join Date
    Apr 2007
    Location
    Alabama
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Website under attack! I need to find IP to ban them

    Hi there. I work really hard to have a website with a bit of everything for everyone. Lately though I have been getting some obscene posts. The result is that I have to keep emptying my shoutbox so that I can keep my site family friendly. Is it possible to put in something that will send the abusers IP address to a file that I can view? If all visitors IP's are logged I will be able to narrow it down.

  • #2
    Regular Coder
    Join Date
    Oct 2005
    Location
    Right Here
    Posts
    654
    Thanks
    1
    Thanked 0 Times in 0 Posts
    You can use .htaccess. That should be a simple solution for you.

  • #3
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Have you checked the web server log files? Is this your server or are you using a commercial host? Are they running apache or IIS?
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    And what shoutbox are you using?
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #5
    New Coder
    Join Date
    Apr 2007
    Location
    Alabama
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by _Aerospace_Eng_ View Post
    And what shoutbox are you using?
    The one on the freewebs website. I don't know what it's called.

  • #6
    New Coder
    Join Date
    Apr 2007
    Location
    Alabama
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Spookster View Post
    Have you checked the web server log files? Is this your server or are you using a commercial host? Are they running apache or IIS?
    It's a commercial host and I don't know what thet are running. How do I check the server log files?

  • #7
    New Coder
    Join Date
    Apr 2007
    Location
    Alabama
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by iLLin View Post
    You can use .htaccess. That should be a simple solution for you.
    How do I implement that?

  • #8
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Quote Originally Posted by pilty View Post
    It's a commercial host and I don't know what thet are running. How do I check the server log files?
    Did they give you shell access to the server? Does it come with a web based control panel?
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #9
    New Coder
    Join Date
    Apr 2007
    Location
    Alabama
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Spookster View Post
    Did they give you shell access to the server? Does it come with a web based control panel?
    I feel so stupid. I don't know the answers to your questions but, I can add "raw HTML" to my paragraphs in the editor that the site uses if that helps.

  • #10
    Regular Coder
    Join Date
    Oct 2005
    Location
    Right Here
    Posts
    654
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Do you have FTP access?

  • #11
    Senior Coder CFMaBiSmAd's Avatar
    Join Date
    Oct 2006
    Location
    Denver, Colorado USA
    Posts
    3,048
    Thanks
    2
    Thanked 317 Times in 309 Posts
    Quote Originally Posted by pilty View Post
    The one on the freewebs website. I don't know what it's called.
    The lack of information you can give us about the script and your server setup will make it difficult for anyone to give specific direction on what to do.

    Most major scripts have support forums where you can get current, up to date, and detailed support, often from the script's author. There may be a version update or a user contributed patch that addresses either IP logging/banning and/or bad content or HTML content injection. Therefor, I recommend that you see if there is a support forum for the specific script that you are using.

    In the meantime, while you sort out what you need to solve this problem, disable this feature on your web site.
    If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.

  • #12
    New Coder
    Join Date
    Apr 2007
    Location
    Alabama
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I police the site rigorously and empty the shoutbox any time that the person posts. I'll take a look at the www.freewebs.com site and see if there is anything in the help files. Is it possible that I could include some javascript in a paragraph on the page in question to reach my goal? Thankyou for all the help. I really appreciate it.

    Chris (Crazy Englishman)

  • #13
    New Coder
    Join Date
    Apr 2007
    Location
    Alabama
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by iLLin View Post
    Do you have FTP access?
    No. I can change to HTML only instead of the sitebuilder that they provide but, I don't really feel confident enough yet to do the whole page in HTML.

  • #14
    New Coder
    Join Date
    Apr 2007
    Location
    Alabama
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question

    The live help on the site says that I can upload a javascript chat box and embed it in a "Raw HTML" paragraph. Can anyone advise me on a good one to use please?

  • #15
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Quote Originally Posted by pilty View Post
    I feel so stupid. I don't know the answers to your questions but, I can add "raw HTML" to my paragraphs in the editor that the site uses if that helps.
    I don't provide answers via PM. In your PM you said you do have a control panel.

    Does the control panel have a name? Many web hosts like to use cPanel. Many control panels will have a feature to allow you to look at or download the log files for your site. If not you will either need shell access to get to the log files or FTP access to get to them. At this point you should probably ask your web host tech support to help you find the log files. The log files will generally contain various information on your visitors including IP addresses. Once you have that you can use .htacess assuming you are allowed to use .htacess to ban individual IP addresses.

    Of course banning individual IP addresses will likely not stop the attacks. They just have to use a different IP address. If this is just a person manually doing it their IP address can/will change if they are using a dynamic IP address ISP. If this is an automated spammer it will likely use different IP's or spoof different IP's. In that case you would end up spending all your time adding new IP addresses to ban.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

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