Someone hotlinking my SWF

SpaceshipSpaceship
Watch

peterstannard

Account Closed
Impact
5
Some is hotlinking to SWF game files on my server.

Seen loads of tutorials on how to prevent image hotlinking but none of SWF files.

How would I stop them calling up the hotlinked file and redirect them to my site instead?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Hmm. I would create 3 blank keyframes at the start of the movie. On the first frame, load vars from a text file on your server. When you use the loadvars function, dont call the whole file url, just relative to where the swf is located on your server. Your text file can have something like me=true. Then on the second frame, put an if statement. If me == true, then go to frame 4. Frame is where your game now starts. If not, go to frame 3. On frame 3 you can put a link to your site with the game.

e39m5
 
0
•••
I honestly hope the following method works for you, since taking the above route may involve a lengthy period of time. Now, if you can place this within the .htaccess file of your folder where the games are situated, it should prevent any further hotlinking:

Code:
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain1\.tld [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain2\.tld [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain3\.tld [NC]
RewriteRule .*\.(jpg|jpeg|swf)$ - [NC,F,L]
Let me know if it does the job. :)
 
0
•••
Never mind. My suggestion was poor. so edited :)
 
0
•••
0
•••
Mr. Websites said:
I honestly hope the following method works for you, since taking the above route may involve a lengthy period of time. Now, if you can place this within the .htaccess file of your folder where the games are situated, it should prevent any further hotlinking:

Code:
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain1\.tld [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain2\.tld [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain3\.tld [NC]
RewriteRule .*\.(jpg|jpeg|swf)$ - [NC,F,L]
Let me know if it does the job. :)

Worked perfectly.

The page that was hotlinking now loads up my website (http://www.todoenlaces.com/themes/default/juegos/jurasic-pinball.htm)
 
0
•••
Good, man I hate people who hotlink and steal the precious bandwidth.
 
0
•••
Mr. Websites said:
I honestly hope the following method works for you, since taking the above route may involve a lengthy period of time. Now, if you can place this within the .htaccess file of your folder where the games are situated, it should prevent any further hotlinking:

Code:
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain1\.tld [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain2\.tld [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain3\.tld [NC]
RewriteRule .*\.(jpg|jpeg|swf)$ - [NC,F,L]
Let me know if it does the job. :)

That should work, i know people who've used it on game sites before selling it on.
 
0
•••
CatchedCatched

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomainEasy — Zero Commission
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back