hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Hosting Talk Tutorials : Hosting Software and Control Panels Tutorials : prevent SPAM Ticket in WHMCS
Reply

Forum Jump

prevent SPAM Ticket in WHMCS

Reply Post New Thread In Hosting Software and Control Panels Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old
New Member
 
Join Date: Feb 2011
Location: Thailand
Posts: 1

prevent SPAM Ticket in WHMCS


Easy solution to solved spam ticket in WHMCS is just create a hook to detect what is going inside the ticket content, so here you goes,

Step 1.

Create file in "includes/hooks/" and name the file as whatever you want and extension must be ".php".
Ex. "anti_spam.php"

Step 2.
Put this code in the file that you just create.
Code:
<?php
$checkvars = array('subject','message');
foreach ($checkvars AS $checkvar) if (strpos($_REQUEST[$checkvar],'{php}')!==false) die("Don't SPAM!!");
?>
Credit to THT.



Sponsored Links
  #2  
Old
Web Hosting Master
 
Join Date: Dec 2011
Posts: 626
Oh i never try before, may try it later... thanks for sharing this info

__________________
********.COM | Web Hosting Provider
₪ Specialised in Web Hosting, Dedicated Server, Domain Name since year 2001.
₪ Trusted by over 50,000+ clients worldwide.
₪ Malaysia, Singapore, United State


  #3  
Old
Community Liaison
 
Join Date: Mar 2003
Posts: 11,403
Moved > Hosting Software and Control Panels Tutorials .

__________________
.
JoneSolutions.Com + SSS = Your Number One Choice On The Net - since 2001

It's Fully Managed and Secured. Ask us at sales @ jonesolutions.com .

Sponsored Links
  #4  
Old
New Member
 
Join Date: Feb 2011
Location: Thailand
Posts: 1
Thank you mod!

  #5  
Old
Junior Guru
 
Join Date: Sep 2010
Location: Ohio - Guatemala
Posts: 185
I found another one while scouring the web, but I'm not getting it work, anyone good with mod_security?

Code:
SecRule ARGS_POST "{php}" "deny,log,auditlog"
It work's if I make it GET and include {php} in my URL line. But posted ticket's don't work. Could it be HTTPS that is causing it?

This would be the cat's meow if I could get this to work

  #6  
Old
Junior Guru
 
Join Date: Sep 2010
Location: Ohio - Guatemala
Posts: 185
DONE!!! It works!!

My final line was:

Code:
SecRule ARGS "{php}" "deny,log,auditlog,msg:'SPAM!! Your IP has been logged.'"
SecRule ARGS_POST "{php}" "deny,log,auditlog,msg:'SPAM!! Your IP has been logged.'"
I know I know, GET and POST, but what the hey This way once they post it doesn't even go through!! I love this!

Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Prevent spam pjssms Hosting Security and Technology 2 04-23-2012 09:38 PM
WHMCS Ticket Spam elofty Hosting Software and Control Panels 11 05-19-2011 07:48 AM
How to prevent spam? super2host Dedicated Server 1 07-02-2008 02:27 AM
Prevent spam in eSupport HostAxe Hosting Software and Control Panels 6 09-06-2005 04:53 PM
How to prevent SPAM?? thaismr Dedicated Server 4 03-13-2003 04:14 PM

Related posts from TheWhir.com
Title Type Date Posted
WHMCS Encourages Users to Upgrade as Part of Important Security Update Web Hosting News 2014-08-27 12:05:55
OnApp Releases New WHMCS Module for Service Providers Web Hosting News 2014-01-21 14:04:13
WHMCS Security Issue Allows for Information Disclosure Web Hosting News 2013-10-25 09:30:46
WHMCS Releases Patch to Address Critical Security Issue Web Hosting News 2013-10-04 16:12:43
WHMCS Releases Version 5.2 of Web Hosting Billing Solution Web Hosting News 2013-04-14 22:35:37


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?