Title: 403 error when trying overlay
Last modified: November 10, 2021

---

# 403 error when trying overlay

 *  [parakeet](https://wordpress.org/support/users/parakeet/)
 * (@parakeet)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/403-error-when-trying-overlay/)
 * Why is a 403 error generated for images the plugin is attempting to generate 
   using an overlay?
 * When overlay is turned off, normal images are served to the tags from the Media
   Library location just fine.
 * When overlay is turned on, I notice URLs change to eg. [https://example.com/wp-content/plugins/wonderm00ns-simple-facebook-open-graph-tags/fbimg.php?is_home=0&is_front_page=0&object_type=post&post_id=371&object_id=371&img=https%253A%252F%252Ftexample.com%252Fwp-content%252Fuploads%252F2021%252F10%252Ffloraplants.jpg](https://example.com/wp-content/plugins/wonderm00ns-simple-facebook-open-graph-tags/fbimg.php?is_home=0&is_front_page=0&object_type=post&post_id=371&object_id=371&img=https%253A%252F%252Ftexample.com%252Fwp-content%252Fuploads%252F2021%252F10%252Ffloraplants.jpg)
 * When attempting to access this URL directly in the browser, a 403 is returned.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [pawellabaj](https://wordpress.org/support/users/pawellabaj/)
 * (@pawellabaj)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/403-error-when-trying-overlay/#post-15518455)
 * I have the same problem.
 * Here is the example of generated overlayed URL: [https://foto.labaj.com.pl/wp-content/plugins/wonderm00ns-simple-facebook-open-graph-tags/fbimg.php?is_home=0&is_front_page=0&object_type=post&post_id=2884&object_id=2884&img=https%253A%252F%252Ffoto.labaj.com.pl%252Fwp-content%252Fuploads%252F2022%252F02%252FP2040812_2400-NI.jpg](https://foto.labaj.com.pl/wp-content/plugins/wonderm00ns-simple-facebook-open-graph-tags/fbimg.php?is_home=0&is_front_page=0&object_type=post&post_id=2884&object_id=2884&img=https%253A%252F%252Ffoto.labaj.com.pl%252Fwp-content%252Fuploads%252F2022%252F02%252FP2040812_2400-NI.jpg)
 * It worked before enabling SSL.
    Do I need to change sth in WP settings?
 *  Thread Starter [parakeet](https://wordpress.org/support/users/parakeet/)
 * (@parakeet)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/403-error-when-trying-overlay/#post-15518469)
 * [@pawellabaj](https://wordpress.org/support/users/pawellabaj/) Ironically, that
   URL is 403 for me.
 *  [pawellabaj](https://wordpress.org/support/users/pawellabaj/)
 * (@pawellabaj)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/403-error-when-trying-overlay/#post-15518577)
 * [@parakeet](https://wordpress.org/support/users/parakeet/) I don’t get it.
 * This is the example of 403 error I gave – I wanted to show that I have the same
   problem as you.
 *  [pawellabaj](https://wordpress.org/support/users/pawellabaj/)
 * (@pawellabaj)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/403-error-when-trying-overlay/#post-15519117)
 * In my case, this was caused by the Web Application Firewall set by my hosting
   provider.
 * I can see the following entries in the error logs:
 *     ```
       ModSecurity: Access denied with code 403 (phase 2). Pattern match 
       ...
       at ARGS_NAMES:object_type. [file
       "/usr/share/waf/23_SQL_SQLi.conf"] [line "18"] [id "211540"] [rev
       "12"] [msg "COMODO WAF: Blind SQL Injection Attack||||2"] [data
       "Matched Data: object_type found within ARGS_NAMES:object_type:
       object_type"] [severity "CRITICAL"] [tag "CWAF"] [tag "SQLi"]
       ```
   
 * `
 * The workaround that is working for me is to remove `object_type` parameter from
   the query string by using `fb_og_image_overlay_url` filter.
 * [@parakeet](https://wordpress.org/support/users/parakeet/) check error logs on
   your server, maybe you have the similar reason for the issue?
    -  This reply was modified 4 years, 2 months ago by [pawellabaj](https://wordpress.org/support/users/pawellabaj/).

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘403 error when trying overlay’ is closed to new replies.

 * ![](https://ps.w.org/wonderm00ns-simple-facebook-open-graph-tags/assets/icon-
   256x256.gif?rev=2891184)
 * [Open Graph and Twitter Card Tags](https://wordpress.org/plugins/wonderm00ns-simple-facebook-open-graph-tags/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wonderm00ns-simple-facebook-open-graph-tags/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wonderm00ns-simple-facebook-open-graph-tags/)
 * [Active Topics](https://wordpress.org/support/plugin/wonderm00ns-simple-facebook-open-graph-tags/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wonderm00ns-simple-facebook-open-graph-tags/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wonderm00ns-simple-facebook-open-graph-tags/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [pawellabaj](https://wordpress.org/support/users/pawellabaj/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/403-error-when-trying-overlay/#post-15519117)
 * Status: not resolved