Someone hotlinking my SWF

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
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
Close
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
Close
Never mind. My suggestion was poor. so edited :)
 
0
Close
0
Close
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
Close
Good, man I hate people who hotlink and steal the precious bandwidth.
 
0
Close
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
Close
Appraise.net

We're social

Escrow.com
Spaceship
CryptoExchange.com
Domain Recover

NamePros updates

Quick replies: search, your most used replies, and more on every post
Quick replies are easier to find and use now. The quick reply menu has a search box. Type a few letters to find the reply you want. A...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back