Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Prevent php regex, someone using myphpfile.php maybe using they bot spammer script
Old 07-13-2011, 07:49 PM Prevent php regex, someone using myphpfile.php maybe using they bot spammer script
Skilled Talker

Posts: 78
Name: syu
Trades: 0
Hi guys,

few days ago my host says in one of my website are sending large mail, that come from senegal country ip


here are my host says

Quote:
There were another 16 mails in the queue this morning going to a very large number of recipients.

X-PHP-Script: www.domain.com/myphpfile.php for 111.222.333.444

That seems to be the source IP, they more than likely injecting headers into the mail() being used in PHP, there are a few regexes and methods on the Internet if you google on how to prevent it.

myphpfile.php are file for sending private message (member got email notification too for each private message) to another member in my site, you must be login to use that page



is there a way to prevent myphpfile.php page by accessing from other server, so only real user that can accessing the page? maybe like prevent hotlinking image





please share your knowledge guys
__________________
Lets help each other
basketmen is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-13-2011, 07:53 PM Re: Prevent php regex, someone using myphpfile.php maybe using they bot spammer scrip
willcode4beer's Avatar
Super Moderator

Posts: 1,533
Name: Paul Davis
Location: San Francisco
Trades: 1
If it's a bot, checking the referrer header (preventing cross linking) won't help.
It's probably best to ensure only logged in users have access
__________________

Please login or register to view this content. Registration is FREE

willcode4beer is offline
Reply With Quote
View Public Profile
 
Old 07-14-2011, 07:50 PM Re: Prevent php regex, someone using myphpfile.php maybe using they bot spammer scrip
Skilled Talker

Posts: 78
Name: syu
Trades: 0
yes, only logged in user have access, the bot looks like can register and login too, using they script

is there anyway to only allow real user to access the myphpfile.php page?
__________________
Lets help each other
basketmen is offline
Reply With Quote
View Public Profile
 
Old 07-14-2011, 10:56 PM Re: Prevent php regex, someone using myphpfile.php maybe using they bot spammer scrip
kalseo's Avatar
Experienced Talker

Posts: 38
Name: Kaloyan Banev
Location: Pattaya, Thailand
Trades: 0
Check server longs, lock the access with .htaccess, block bots with robots.txt and if possible change defualt SMTP port.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
kalseo is offline
Reply With Quote
View Public Profile Visit kalseo's homepage!
 
Old 07-15-2011, 04:11 AM Re: Prevent php regex, someone using myphpfile.php maybe using they bot spammer scrip
lizciz's Avatar
Super Spam Talker

Posts: 807
Name: Mattias Nordahl
Location: Sweden
Trades: 0
Use some kind of CAPTCHA system, to make it harder for bots to both register, login, and send e-mail. Make them fill in some characters from an image for each of these steps.

Also, if you havn't already, you might wanna add some flood protection, so that the same user cannot send a new email for, lets say 60 second, after he has sent one.
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
lizciz is online now
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Reply     « Reply to Prevent php regex, someone using myphpfile.php maybe using they bot spammer script
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.15231 seconds with 12 queries