|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
||||
|
||||
|
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. |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
||||
|
||||
|
Quote:
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://www.aoeex.com/gmap.php - Put yourself on the map |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > PHP Development > PHP-General - Anti-spam: can I retrieve location from where is posted? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|