Questions about redirects... and cache

ok so members of mysite were by passing my adverts and using this link http://viptopia.net/modules/flashcoms/flashcoms_chat/swf/chat71.swf ... well so to stop them from using the link i wrote the redirect to push everything from http://viptopia.net/modules/flashcoms/flashcoms_chat/swf/chat71.swf  to http://viptopia.net/m/flashcoms_chat/embedded  ..  seems to be working except for those who have it cached, the redirect is not working for them,, is there anyway i can force even them to see the redirect when they try to use the link?

MY SITES http://viptopia.net general social networking | http://www.rangerschat.com/ niche site
Quote · 6 Dec 2013

hmm and i just checked it wiht internet explorer that i had never used before to look at that link and the redirect is not working on it,, it is showing the normal page

MY SITES http://viptopia.net general social networking | http://www.rangerschat.com/ niche site
Quote · 6 Dec 2013

someone was telling me there was a way to stop people from directly accessing the swf files,, by editing the .htaccess in that folder. I had tried

RewriteEngine on RewriteCond %{HTTP_REFERER} !^http://(www\.)?localhost [NC] RewriteCond %{HTTP_REFERER} !^http://(www\.)?localhost.*$ [NC] RewriteRule \.(gif|jpg)$ - [F]


but it didnt work like i wanted it too,, it did keep the swf chat boxes from loading with a direct url, but it also prevented my site from loading the swf boxes in the places it needs them like in the embedded chat page and on the full screen chat page.. anyone familiar with this way of stoping people from accessing files with a direct link?

 

MY SITES http://viptopia.net general social networking | http://www.rangerschat.com/ niche site
Quote · 6 Dec 2013

You can try creating a .htaccess file and uploading it to the 'swf' directory of the Flashcom module.

 

Open notepad and enter:

 

Redirect 301 / http://www.yoursite.com/

 

Click File > Save As > Change 'Save as type' to All Files> name the file  .htaccess  (including the period in front). Note: 301 indicates a permanent redirect.

You could also try entering a Deny from All with iit but not sure if the redirect will work then.. but you can try.

 

Like this:

deny from all

Redirect 301 / http://www.yoursite.com/

 

 

Another option is to redirect them to a specific page. In this case I use the Join page

 

DirectoryIndex  join.php

Nothing to see here
Quote · 6 Dec 2013

tried all of them,, none of them worked ,, dang it, any more ideas?

MY SITES http://viptopia.net general social networking | http://www.rangerschat.com/ niche site
Quote · 6 Dec 2013

You put the .htaccess file in the modules/flashcoms/flashcoms_chat/swf/ directory and it didnt work?

Nothing to see here
Quote · 6 Dec 2013

yes sir i did,, have a look

Image and video hosting by TinyPic

MY SITES http://viptopia.net general social networking | http://www.rangerschat.com/ niche site
Quote · 6 Dec 2013

Going to http://viptopia.net/modules/flashcoms/flashcoms_chat/swf/  takes you a different page but it didn't stop them from accessing the file directly..

Nothing to see here
Quote · 6 Dec 2013

yeah that is i think cause of the redirect,, so there is now way,, i thought there was a way to tell files in that folder to open up with en rewite for apache ??

,, further up on this post

MY SITES http://viptopia.net general social networking | http://www.rangerschat.com/ niche site
Quote · 6 Dec 2013

when I did

deny from all

Redirect 301 / http://www.viptopia.net/

 

in the htaccess it stopped all the pages from using and working with the chat,, it wouldnt load the swf even on the pages it was suppose to like

embedded and full page and popout

 

and  "   Redirect 301 / http://www.viptopia.net  "     stopped everything on the site from using the swf files as well,, i think we are on the right track but we need to allow the site to be allowed to use the swf when the deny everything else
 

MY SITES http://viptopia.net general social networking | http://www.rangerschat.com/ niche site
Quote · 6 Dec 2013

Sorry for the delay. I am at work and also just returned from lunch. I will come up with a solution for you. Hang tight

 

Nothing to see here
Quote · 6 Dec 2013

 

Sorry for the delay. I am at work and also just returned from lunch. I will come up with a solution for you. Hang tight

 

 awesome,, cause i am at my wits end to be honest.. thank you very much sir

MY SITES http://viptopia.net general social networking | http://www.rangerschat.com/ niche site
Quote · 6 Dec 2013

Try adding this in the .htaccess file instead (remove the other stuff)

 

<FilesMatch "\.swf$">
    Order Allow,Deny
    Deny from all
</FilesMatch>

Let me know what happens.

Nothing to see here
Quote · 6 Dec 2013

If all else fails..

 


RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?viptopia.net [NC]
RewriteRule \.(swf)$ - [NC,F,L]

 

Same process, remove everything, add this to your .htaccess file, upload back to the /swf directory. What 'should' happen here is that if someone tries to access a .swf file - in that directory - by using your website's full URL, they should get block. This 'shouldn't' block any php code(s) that may 'call' to this directory though. (meaning your modules should still work)

 

You can add other file types by editing this part: RewriteRule \.(swf|jpg|jpeg|png|gif|avi|mpg)$ - [NC,F,L] 

Nothing to see here
Quote · 6 Dec 2013

 trying this now

Try adding this in the .htaccess file instead (remove the other stuff)

 

<FilesMatch "\.swf$">
    Order Allow,Deny
    Deny from all
</FilesMatch>

Let me know what happens.

 

MY SITES http://viptopia.net general social networking | http://www.rangerschat.com/ niche site
Quote · 6 Dec 2013

nope that didnt work,.,,

 

trying

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?viptopia.net [NC]
RewriteRule \.(swf)$ - [NC,F,L]  

now

MY SITES http://viptopia.net general social networking | http://www.rangerschat.com/ niche site
Quote · 6 Dec 2013

i think the last one worked,, we are testing it now.. thank you buddy

MY SITES http://viptopia.net general social networking | http://www.rangerschat.com/ niche site
Quote · 6 Dec 2013

 

i think the last one worked,, we are testing it now.. thank you buddy

 Let me know. I can keep digging around if needed.

Nothing to see here
Quote · 6 Dec 2013

ok well that fixed it on ie and firefox but it still works in chrome,, is there a fix that will fix it for chrome aswell?

MY SITES http://viptopia.net general social networking | http://www.rangerschat.com/ niche site
Quote · 6 Dec 2013

 

ok well that fixed it on ie and firefox but it still works in chrome,, is there a fix that will fix it for chrome aswell?

 I wouldn't think it would be browser specific since the 'protection' is directory based. I will have to check on it.

Nothing to see here
Quote · 8 Dec 2013

 ok,, it might just be that the one still able to use it are working out of chromes cache or something

 

 

ok well that fixed it on ie and firefox but it still works in chrome,, is there a fix that will fix it for chrome aswell?

 I wouldn't think it would be browser specific since the 'protection' is directory based. I will have to check on it.

 

MY SITES http://viptopia.net general social networking | http://www.rangerschat.com/ niche site
Quote · 8 Dec 2013

Chromes cache is a bitch. You have to go multiple rounds with the thing just to get it to completely clear.

https://www.deanbassett.com
Quote · 8 Dec 2013

 

Chromes cache is a bitch. You have to go multiple rounds with the thing just to get it to completely clear.

 boy you can say that again,, i refuse to even enter the admin panel with it, it always messes up the page layouts cause the way it caches.. im sure that is the current problem with the settings to stop people from using the swf directly in this issue. I am sure in time it will sort itself.

MY SITES http://viptopia.net general social networking | http://www.rangerschat.com/ niche site
Quote · 8 Dec 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.