*

Own Petz

  • ****
  • 218 posts
  • OwnPetz - Free Classified Ads. Buy, Sell or Adopt
Advertisements Forbidden Issue
« on: December 31, 2025, 06:37:51 AM »
Hi,

Thanks for your previous help..

Today I am facing some issue... Blog showing ads but products not showing ads..

So I visited in Backend - Themes - Advertisements and there is no ads.

and I have these settings - Enable Theme Banners - Enabled. and Optimize Banners for Adsense - Enabled.

and when I am writing Google Adsense Ads and clicking on Save getting error Forbidden.

How to Fix this issue...

Thanks in Advance.
« Last Edit: December 31, 2025, 06:40:11 AM by Own Petz »
OwnPetz - Free Classified Ads. Buy, Sell or Adopt Online. https://ownpetz.com

*

Own Petz

  • ****
  • 218 posts
  • OwnPetz - Free Classified Ads. Buy, Sell or Adopt
Re: Advertisements Forbidden Issue
« Reply #1 on: December 31, 2025, 07:27:23 AM »
I asked with chatgpt and i got this reply ..

Yes, this is a very common Osclass issue 👍
The “Forbidden” error when saving Google AdSense code in Themes → Advertisement is not an Osclass bug. It is almost always caused by server security (ModSecurity / WAF) blocking AdSense <script> code.

I am using Hostinger. and also chatgpt suggest ad codes in item.php so i have pasted but when i will update theme, I have to change this setting again...
OwnPetz - Free Classified Ads. Buy, Sell or Adopt Online. https://ownpetz.com

*

MB Themes

Re: Advertisements Forbidden Issue
« Reply #2 on: January 08, 2026, 04:43:28 PM »
Yes it's usually mod security that blocks storing javascript in forms.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots