Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

15113 Posts in 2657 Topics- by 1602 Members - Latest Member: komrad
Digg This!
Arcade WebmastersArcadesSite DesignGameSiteScript (GSS)What to do about people linking directly to .swf page?
Pages: [1] 2   Go Down
Print
Author Topic: What to do about people linking directly to .swf page?  (Read 2758 times)
0 Members and 1 Guest are viewing this topic.
RoboLlama
AWM Junkie
**


Posts: 60
Referrals: 0
Credits: 270.00
View Inventory
Send Money to User

Trade Count: (0)

View Profile
Offline Offline
« on: January 09, 2007, 04:11 PM »

What can I do about people linking directly to .swf page? It has no adverts on it obviously, because it's just the .swf. I want to stop this, but I'm not real sure how...
Logged

gewbr
AWM Addict
***


Posts: 164
Referrals: 0
Credits: 175.00
View Inventory
Send Money to User

Trade Count: (0)

View Profile WWW
Offline Offline
« Reply #1 on: January 09, 2007, 04:52 PM »

htaccess or modrewrite i believe ... i just noticed the same thing but at least most of them that are doing it now are at least putting my site link under the game
Logged


kip
AWM Old Timer
*****


Posts: 611
Referrals: 0
Credits: 190.00
View Inventory
Send Money to User

Trade Count: (0)

View Profile WWW
Offline Offline
« Reply #2 on: January 09, 2007, 05:42 PM »

if you block the hotlink of the swf, you will not be able to use the embed code (where users can put your games on myspace)
Logged


RoboLlama
AWM Junkie
**


Posts: 60
Referrals: 0
Credits: 270.00
View Inventory
Send Money to User

Trade Count: (0)

View Profile
Offline Offline
« Reply #3 on: January 09, 2007, 06:16 PM »

Quote from: kip;6363
if you block the hotlink of the swf, you will not be able to use the embed code (where users can put your games on myspace)


How do you block the hotlink of the swf? Also, I don't have the thing activated where people can put the games on their myspace.
Logged

teenfreearcade
AWM Addict
***


Posts: 159
Referrals: 0
Credits: 160.00
View Inventory
Send Money to User

Trade Count: (0)

View Profile WWW
Offline Offline
« Reply #4 on: January 09, 2007, 06:56 PM »

Quote from: RoboLlama;6365
How do you block the hotlink of the swf? Also, I don't have the thing activated where people can put the games on their myspace.

 
.htaccess file.
Logged


asceth
AWM Addict
***


Posts: 157
Referrals: 0
Credits: 210.00
View Inventory
Send Money to User

Trade Count: (0)

View Profile
Offline Offline
« Reply #5 on: January 09, 2007, 09:38 PM »

Change the domain to your arcade and put it in the directory where your games are located.  You may want to also change the  hotlink.swf file.  I created my own flash swf to direct users to so if they play fullscreen or its embedded in another web page they see the hotlink.swf file.  Wouldn't do any good to redirect to my homepage if its embedded.  Smiley

Quote

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?heroarcade.com [NC]
RewriteRule \.(swf)$ hotlink.swf [NC,L]


For myspace (not tested)

Quote

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?myspace.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(profile\.)?myspace.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?heroarcade.com [NC]
RewriteRule \.(swf)$ hotlink.swf [NC,L]


Then again I map each of my games to a unique game key and have a php script that passes the correct headers and file through to the embed.  For example:

instead of embedding the game directly like   .  Mine would look like

And trying to access keyloader.php?gamekey=2k3h2lh2ldskjsl0  directly in the browser just denies them direct access.  I should probably link it to my hotlink.swf too.
Logged

RoboLlama
AWM Junkie
**


Posts: 60
Referrals: 0
Credits: 270.00
View Inventory
Send Money to User

Trade Count: (0)

View Profile
Offline Offline
« Reply #6 on: January 10, 2007, 11:46 AM »

I'm not real sure how to do what you've posted. I put it in the .htaccess file hat I put in my games directory and replaced the heroarcade with my domain but it still doesn't do anything if they go directly to the .swf of the file. Here's an example.
http://robollama.com/game/swf/railofwar.swf
Nothing happens, how can I stop people from going to this? It's using up my bandwidth and not earning me any actual traffic to the site, and no $$$.
Logged

asceth
AWM Addict
***


Posts: 157
Referrals: 0
Credits: 210.00
View Inventory
Send Money to User

Trade Count: (0)

View Profile
Offline Offline
« Reply #7 on: January 10, 2007, 03:06 PM »

You'll need to show me exactly what you have in the .htaccess file.  I'll also need to the output of    to verify you have mod_rewrite installed and to see if you are indeed running linux.

You can PM me the output of the phpinfo if you dont feel comfortable posting it or at least verify that you have mod_rewrite/linux.  If you dont know how to verify it for me then I'd need to see it to help you.


Also, and this is important, clear your browser cache and temporary internet files.  If its cached the htaccess wont do anything since you aren't actually getting it.  For example I just accessed a game called ballsondrugs.swf on my site and it came up as the game.  I cleared the cache and the hotlink worked properly.  It was just that my browser had that game cached before.

Example:   http://www.asceth.com/game.php    should show the hotlink swf so you know it works.  tongue
Logged

RoboLlama
AWM Junkie
**


Posts: 60
Referrals: 0
Credits: 270.00
View Inventory
Send Money to User

Trade Count: (0)

View Profile
Offline Offline
« Reply #8 on: January 12, 2007, 07:56 PM »

IS mod_rewrite required in order to stop this? B/c as of now I don't have mod_rewrite on my URLs
Logged

asceth
AWM Addict
***


Posts: 157
Referrals: 0
Credits: 210.00
View Inventory
Send Money to User

Trade Count: (0)

View Profile
Offline Offline
« Reply #9 on: January 12, 2007, 08:56 PM »

You don't need to be actively using mod_rewrite, however your apache installation must be able to use it.
Logged

RoboLlama
AWM Junkie
**


Posts: 60
Referrals: 0
Credits: 270.00
View Inventory
Send Money to User

Trade Count: (0)

View Profile
Offline Offline
« Reply #10 on: January 13, 2007, 10:57 AM »

What do you mean by "need to the output of " and how do I get that?
Logged

asceth
AWM Addict
***


Posts: 157
Referrals: 0
Credits: 210.00
View Inventory
Send Money to User

Trade Count: (0)

View Profile
Offline Offline
« Reply #11 on: January 13, 2007, 12:02 PM »

create a new file in your site called  whatever.php.  Edit that file to contain:

Quote
echo phpinfo();
?>

Tell me where to find that file or (better way) go to that file in your browser and Save the Page.  Then send me, PM me that page.  Having the phpinfo accessible is a not secure since everyone can see what version of stuff you are running to attack you.  That is why I want you to simply grab the page/PM me with that info.

After you get that info, be sure to delete the file you made from your site.

btw, the phpinfo()  function simply prints out the php environment and the apache config.  I'm pretty sure I can tell if mod_rewrite is available through that output.
Logged

RoboLlama
AWM Junkie
**


Posts: 60
Referrals: 0
Credits: 270.00
View Inventory
Send Money to User

Trade Count: (0)

View Profile
Offline Offline
« Reply #12 on: January 13, 2007, 03:15 PM »

Ok, I have the page saved but how can  I send it to you? You can't have attachments in PMs..
Logged

asceth
AWM Addict
***


Posts: 157
Referrals: 0
Credits: 210.00
View Inventory
Send Money to User

Trade Count: (0)

View Profile
Offline Offline
« Reply #13 on: January 14, 2007, 01:27 PM »

I sent you a PM for a place you can send it to.
Logged

RoboLlama
AWM Junkie
**


Posts: 60
Referrals: 0
Credits: 270.00
View Inventory
Send Money to User

Trade Count: (0)

View Profile
Offline Offline
« Reply #14 on: January 15, 2007, 12:46 PM »

Alright, the file has been sent!
Logged

Pages: [1] 2   Go Up
Print

Jump to: