Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 16th, 2007, 12:25 PM   #1
sagedavis
Newbie
 
Join Date: Jan 2007
Location: Taylor, TX
Posts: 18
Rep Power: 0 sagedavis is on a distinguished road
creating and useing an access log

Hi all.
I have a problem where I have a user that is adding spam content to one of my websites.

The website is built as a community project for users of a software called anim8or. Users are allowed to add links to their favorite tutorials on using the software and so on.

I had to stop working on the site, as I have been battling this spammer, who keeps adding multiple links to adult content and cialis and viagra type sites.

I have made it so that whenever someone adds an entry to the database, it gives me their ip address. And I can block that particular ip address.

As you know most people do not have a static ip address.

Anyway, I resolved the ip address and found out that the isp for this person is a company called layered technology, and that they have an abuse policy.

The company is willing to take action but they require that I give them the portion of "httpd access log".

Apparently, I do not have one on my server.

Here is the direct email that I recieved from the enforcement team.
Quote:
If this is being posted to a web-based forum/mail-form we will require the httpd access log excerpts demonstrating the connection/POST to be in a position to take action against our client.
It's not really a forum, nore is it mail, but, I figure there must be a way for me to monitor this, and show it to them.

My site is on a linux server, and I have built it all from scratch using PHP.

Any ideas would be great, thanks.
Sage
__________________
I reject your reality and substitute my own.

If you aren't learning, you aren't living.
www.an8search.com
sagedavis is offline   Reply With Quote
Old Apr 16th, 2007, 12:41 PM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
See your Apache config file (custom logs), or the Apache site for more detailed information. Presumes you're using Apache, of course.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Apr 16th, 2007, 2:52 PM   #3
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,473
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
I have had similar issues on my site from the same domain. IF you are running Apache, you can try looking for the log file named /var/log/httpd/access_log. Here is an example:

[root@pandora httpd]# pwd
/var/log/httpd
[root@pandora httpd]# cat access* | grep layered
26.153.36.72.reverse.layeredtech.com - - [20/Mar/2007:12:28:33 -0500] "GET / HTTP/1.1" 200 4753 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
26.153.36.72.reverse.layeredtech.com - - [20/Mar/2007:12:28:34 -0500] "GET /guestbook HTTP/1.1" 301 321 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
26.153.36.72.reverse.layeredtech.com - - [20/Mar/2007:12:28:35 -0500] "GET /guestbook/ HTTP/1.1" 200 482 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
26.153.36.72.reverse.layeredtech.com - - [20/Mar/2007:12:28:35 -0500] "GET /guestbook HTTP/1.1" 301 321 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
26.153.36.72.reverse.layeredtech.com - - [20/Mar/2007:12:28:36 -0500] "GET /guestbook/ HTTP/1.1" 200 482 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
26.153.36.72.reverse.layeredtech.com - - [20/Mar/2007:12:28:37 -0500] "GET /books.html HTTP/1.1" 200 885 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"

In attempts to block them, you can add this in /etc/hosts.deny:
ALL: layeredtech.com

And/Or this in the .htaccess of the directory that's being hammered:

order allow,deny
deny from layeredtech.com
allow from all
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:00 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC