Whitelist referer for web embeds http referer x frame options?

Hi there,

I’m struggling with which domain i should whitelist to allow my website to embed to.

So embedding a website in the glide app, and the glide app only (exclusively)

I want to add this in the .htaccess of a website. But it won’t work.
I tried glide. page
glideapps. io
glideapps. com

But none of them work. Which domain should i allow? This is the code i’m using:

RewriteEngine on

RewriteCond %{HTTP_REFERER} !^https://(www.)?glideapp.io/ [NC]

RewriteCond %{REQUEST_URI} !^/wp-admin [NC]

RewriteRule ^(.*)$ https://google.com/$1 [L,R=301]

@Jason @Daniel_Sweet Can you help with this? Thanks a lot.

1 Like

referer is https://go.glideapps.com/

so code should be:

RewriteEngine on

RewriteCond %{HTTP_REFERER} !^https://(www.)?go.glideapps.com/.* [NC]
RewriteCond %{REQUEST_URI} !^/wp-admin [NC]
RewriteRule ^(.*)$ https://google.com [L,R=301]

1 Like

I’m surprised that works.
go.glideapps.com is the builder URL…
But hey, if it works, that’s great

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.