QUICK NEWS

{NEW} - A new css video is up.

{OLD} - New video courtesy of Skhilled, Thanks for posting it up.

Video of the moment:


Internal Links

SMF Sites

Quick Info

Direct file links from website to website

Started by Dave, Sep 29, 2025, 08:12 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dave

Quote from: Neša on Oct 04, 2025, 03:01 AMIt's interesting that the game works with the IP alone.
In shared hosting they use a virtual site, they have one IP and configurations with different URLs that will route to different sites.
This works because you send a reference to the web server of the URL you are trying to get to.

The email delay is happening on some SMF 2.1.6 forums, they say it should be fixed in 2.1.7

Have you tried to make it https://www.davejohnson.co.uk/test/? not sure if it will fix it /test is just a directory.



Thanks again for the reply. Yes I tried the '/test' option but that made no difference the game still worked with the IP address but not with the web address. I'll keep at  ;D

Neša

I found a CORS test.
https://cors-test.codehappy.dev/?url=https%3A%2F%2Fwww.davejohnson.co.uk&origin=https%3A%2F%2Fwww.quizland.co.uk%2F&method=get

When I did the test I see ? character I wonder if the " wasn't encoded properly maybe try changing them to ' in the config?


Dave

If I remove the davejohnson.co.uk and put in a wild card '*' 

<IfModule mod_headers.c>

    Header set Access-Control-Allow-Origin '*'

    Header set Access-Control-Allow-Methods "GET, HEAD"

    Header set Access-Control-Allow-Headers "Content-Type, Authorization"

</IfModule>

then it works using

https://davejohnson.co.uk/test/AdvanceGuardianHeroesUSA.gba with no errors, but I am aware that is dangerous as far as security is concerned.

I will keep playing around, there must be a way to do this

Neša

what if you put the url back in but keep the single quotes?


Neša

hmm.
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://davejohnson.co.uk/test/AdvanceGuardianHeroesUSA.gba. (Reason: CORS header 'Access-Control-Allow-Origin' does not match 'https://www.davejohnson.co.uk'

what if you remove the quotes ?


Dave

Quote from: Neša on Oct 04, 2025, 04:37 AMwhat if you put the url back in but keep the single quotes?

No that doesn't work. I did try that after reading your last post, then when I went to that link you posted I read about the wildcard.

Dave

Quote from: Neša on Oct 04, 2025, 04:41 AMhmm.
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://davejohnson.co.uk/test/AdvanceGuardianHeroesUSA.gba. (Reason: CORS header 'Access-Control-Allow-Origin' does not match 'https://www.davejohnson.co.uk'

what if you remove the quotes ?

I'll try that now

Neša

I think we are having issues with the config not sure what the problem is.


Dave

I've tried various permutations of with quotes, without with quotes and commas and a colon after the Header set Access-Control-Allow-Origin: https://www.davejohnson.co.uk but the only thing that works is the wild card.

I should add at this point I'm not testing the game only the CORS

Neša



Dave

Quote from: Neša on Oct 04, 2025, 04:55 AMMaybe the url is incorrect try https://www.quizland.co.uk:dontknow

No that doesn't work either only thing that's working is the wildcard

Neša

#26
I'm not sure, I have limited knowledge on what is failing.
Maybe someone else that is a JavaScript or Web developer might know why.


Dave

Quote from: Neša on Oct 04, 2025, 05:09 AMI'm not sure, I have limited knowledge on what is failing.
Maybe someone else that is a JavaScript or Web developer might know why.

Thanks for looking Nesa it's much appreciated. The only reason I wanted to link to the file on the other site is to save my main site from going over the 'inodes' limit, the dj.co.uk will be gone next year as I wont be able to afford to renew the hosting. I might try and host it on my NAS drive, that's another task I can play with for now

Neša

You're welcome I think some of the other guys on here might know what needs to be changed.
I wouldn't expose your NAS to the internet, maybe a S3 storage host might be better?

I use https://wasabi.com/ for my backups you can look at them they charge per TB, 1TB is $7 USD per month.


Skhilled

I was going to mention something about the email delays. Thanks.