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 9155895
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:40:37+00:00 2026-06-17T12:40:37+00:00

I am encountering a 403 Forbidden error when posting URL’s via a form using

  • 0

I am encountering a 403 Forbidden error when posting URL’s via a form using PHP on an apache shared host.

From an existing question ( Error 403 on form submit ) this is most likely caused by mod_security installed on the server.

As I am using shared hosting, I’m not able to disable the module easily, so I implemented a JavaScript solution to strip the http:// before posting the data.

This worked for a while, but unfortunately, the error is still being triggered by some longer url’s.

Are there any further methods I can use to cleanse the URL before posting it so that it won’t trigger a security module like this?

  • 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-17T12:40:38+00:00Added an answer on June 17, 2026 at 12:40 pm

    I have had a similar issue and what I did was ask my hosting provider to add an exclusion to mod_security for that specific page, and it was fixed. The alternative was to disable mod_security, which they did not want to do 🙂

    Another thing you might try is having a Javascript action on the submit buttons, which does a base64 encode of the URL, and then submits the form with that encoded value. Then, on the server side, you decode it.

    Hope this helps.

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

Sidebar

Related Questions

I am encountering a problem while extracting info from a database using php+mysql and
I am encountering problems writing XML files using PHP. The following is my php
I'm encountering an odd problem showing .svg using simple img tags on Apache. On
I am encountering a weird error when using linq-to-sql with ado.net data services. I
I am encountering an error. My log is as follows: PHP Warning: mysql_num_rows(): supplied
I'm encountering an error sprintf statement. I added a printf command to help investigate,
I am encountering a very strange error with my project. I normally use the
I am encountering an odd issue whereby I can move items from one list
I've been encountering an OverflowException recently within GDI+ via a 3rd party tool which
I am encountering a very strange error for that says the following: Template is

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.