Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8025335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T23:08:00+00:00 2026-06-04T23:08:00+00:00

I am developing a small application where an admin can insert bulk discount voucher

  • 0

I am developing a small application where an admin can insert bulk discount voucher codes in the back-end. In the front-end, site visitors can get those codes, one by one. To insert voucher codes in the backend, I am providing the admin a Textarea where he can insert them all at once. Everything was working fine, until I got a unique voucher code “XXXXXX-XXX-XXX-wGeT”.

I have a simple HTML form, which is submitted using the POST method. On submitting this voucher code, the browser sends me a “501-Method not implemented” error in the response. The problem is with the “wGet” keyword in the code. I know wget is a linux command, but here I am sending it as a text in POST. Server just sending me 501 error. I googled a lot, but didn’t have any luck. How do I escape this “wGeT” keyword, before form submit?

edit:

<?php
if($_REQUEST){
    echo '<pre>';
    print_r($_REQUEST);
    echo '</pre>';
}
?>
<html>
    <head>
        <title>Wget Demo</title>
    </head>
    <body>
        <form name="frmCodes" method="POST">
            <textarea name="voucher_codes"></textarea>
            <input type="submit" name="btnSubmit"/>
        </form>
    </body>
</html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T23:08:01+00:00Added an answer on June 4, 2026 at 11:08 pm

    I think mario’s comment is right, it’s probably mod_security.

    default behaviour will be scanning POST data ( see /etc/httpd/conf/modsecurity.conf )

    SecFilterScanPOST On
    

    with wget blocked

    # WEB-ATTACKS wget command attempt
    SecFilter "wget\x20"
    

    comment out this SecFilter by preceding it with # (or set SecFilterScanPOST to Off) and restart apache to see if it solves it.

    or use a .htaccess file in the corresponding directory containing:

    <IfModule mod_security.c>
    # Turn the filtering engine On or Off or DynamicOnly for cgi/php/etc
    SecFilterEngine On
    
    # Should mod_security inspect POST payloads
    SecFilterScanPOST Off
    
    # this rule allows wget but logs it so you can verify it if necessary
    SecFilter "wget\x20" "log,pass"
    </ifModule>
    

    I put both options in so you can play with it somewhat, it’s probably possible to be more site specific but you’ll need to read up a bit on mod_security rules

    slight edit: added a wget allowing but logging rule to .htaccess, this would allow you to put SecFilterScanPOST to On

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a small flash application. In my application a user can draw
I'm developing a small application in Ruby-On-Rails. In a controller I have this piece
I'm developing a small application using Blend, basically what I have in my application
I'm developing a small application with needs to replace .NET style variables in strings
I am developing a small application with images and trash box icon on right
I am developing a small application on Google's android emulator. I am trying to
I am developing a small application to get some picture from a scanner. What
I'm thinking of developing a small application using IronPython, however I want to distribute
I'm new to objective-c and at the moment developing a small application. I have
I am developing a small Spring application. I have to store the details of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.