PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old May 8th, 2008, 01:12 PM
WeXXL's Avatar
WeXXL WeXXL is offline
Awake and listening...
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: Berlicum, the Netherlands
Posts: 122 WeXXL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 6 h 3 m 42 sec
Reputation Power: 8
PHP-General - Anti-spam: can I retrieve location from where is posted?

Background:
I've got a guestbook which some bots like to use as an advertisement location for their x-rated sites, and basicly, I don't want them on my site.

My question is as simple as this:
is it possible to retrieve the location where a $_POST is coming from?

When writing something into my guestbook, I want to know if a user uses my own written 'guestbookwrite.php' or uses another self-written form.
__________________
People who get a raise because of their good work have been underpayed for quite some time.

Reply With Quote
  #2  
Old May 8th, 2008, 01:17 PM
ManiacDan's Avatar
ManiacDan ManiacDan is offline
Beware
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Oct 2006
Location: Texas, USA
Posts: 1,435 ManiacDan User rank is First Lieutenant (10000 - 20000 Reputation Level)ManiacDan User rank is First Lieutenant (10000 - 20000 Reputation Level)ManiacDan User rank is First Lieutenant (10000 - 20000 Reputation Level)ManiacDan User rank is First Lieutenant (10000 - 20000 Reputation Level)ManiacDan User rank is First Lieutenant (10000 - 20000 Reputation Level)ManiacDan User rank is First Lieutenant (10000 - 20000 Reputation Level)ManiacDan User rank is First Lieutenant (10000 - 20000 Reputation Level)ManiacDan User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 16 h 53 m 15 sec
Reputation Power: 176
do a print_r on the $_SERVER variable, it shows the page they're coming from, the browser they're using, and their IP address.

-Dan
__________________
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin

"The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002

Reply With Quote
  #3  
Old May 8th, 2008, 01:23 PM
kicken's Avatar
kicken kicken is offline
Wiser? Not exactly.
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: May 2001
Location: Ft Myers, FL
Posts: 4,003 kicken User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)kicken User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)kicken User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)kicken User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)kicken User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)kicken User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)kicken User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)kicken User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)kicken User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)kicken User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)kicken User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)  Folding Points: 115392 Folding Title: Super Ultimate Folder - Level 1Folding Points: 115392 Folding Title: Super Ultimate Folder - Level 1Folding Points: 115392 Folding Title: Super Ultimate Folder - Level 1Folding Points: 115392 Folding Title: Super Ultimate Folder - Level 1Folding Points: 115392 Folding Title: Super Ultimate Folder - Level 1Folding Points: 115392 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 1 Month 2 Weeks 4 Days 16 h 44 m 28 sec
Reputation Power: 414
Send a message via ICQ to kicken Send a message via AIM to kicken Send a message via MSN to kicken
Quote:
Originally Posted by ManiacDan
do a print_r on the $_SERVER variable, it shows the page they're coming from, the browser they're using, and their IP address.

-Dan


All of which will be spoofed to look like a valid request by any decent spammer. Basically, the only way to really prevent the spam is screening it, be it via a captcha, or manually, or some other method.

http://aoeex.com/personal/2007/03/0...stbook_spam.php
That is an article detailing the method I use on my site to prevent guestbook/comment spam. It has worked almost flawlessly for me since implementing it. It wont stop anyone intentionally targeting my site, but it does stop most all the auto-post programs out there. Feel free to look it over and use it if you wish.
__________________
Spidermonkey Tutorial

http://wiser.aoeex.com/ - Long term project (offline due to evil crawlers and lack of content)
http://www.aoeex.com/gmap.php - Put yourself on the map

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > PHP-General - Anti-spam: can I retrieve location from where is posted?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway