Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: restrict visitors to download style.css

  1. #1
    Thread Starter
    Veteran pinocchio's Avatar
    Join Date
    Sep 2010
    Location
    United Kingdom
    Posts
    633
    Thanks
    83
    Thanked 21 Times in 16 Posts

    Cool restrict visitors to download style.css

    I don't like any1 to be able to download my style.css file ! how can I do it ?

  2. #2
    Senior Member matt9250's Avatar
    Join Date
    Jan 2011
    Location
    Texas
    Posts
    180
    Thanks
    19
    Thanked 5 Times in 5 Posts
    I don't think you can do that, if you block your css, then your site won't use the styles either. The browser has to to read the css to show your site, once it downloads to the browser, you have no control. At least as far as I know.

  3. #3
    Thread Starter
    Veteran pinocchio's Avatar
    Join Date
    Sep 2010
    Location
    United Kingdom
    Posts
    633
    Thanks
    83
    Thanked 21 Times in 16 Posts
    Oh my God ! really ?!!!!! any other idea ?

  4. #4
    Marketplace Seller mr_green's Avatar
    Join Date
    Aug 2010
    Posts
    953
    Thanks
    113
    Thanked 192 Times in 147 Posts
    Also submit your site can help....?

    1) hot linking ...in....---->.htaccess
    2) deny ....Satisfy....

    More at mod_access_compat - Apache HTTP Server






















    test that in .htaccess
    PHP Code:
    <Files .css|.js>
    order allow,deny
    deny from all
    </Files
    Best

  5. #5
    Member sed671's Avatar
    Join Date
    Apr 2010
    Location
    Guam
    Posts
    68
    Thanks
    6
    Thanked 9 Times in 9 Posts
    Mr Green, I tried that and my styles didn't load. I was always curious if this was ever possible?
    GuamGrabs.com - A local classifieds site for Guam

  6. #6
    Marketplace Seller mr_green's Avatar
    Join Date
    Aug 2010
    Posts
    953
    Thanks
    113
    Thanked 192 Times in 147 Posts
    .htaccess
    PHP Code:
    RewriteEngine on
    RewriteCond 
    %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com/.*$ [NC]
    RewriteRule \.(gif|jpg|js|css)$ - [F
    ------------------------------------------------------------------------------
    .htaccess
    PHP Code:
    <files zzzzz----zZZZZzzz.css>
    order allow,deny
    deny from all
    </files
    Best

  7. #7
    Senior Member matt9250's Avatar
    Join Date
    Jan 2011
    Location
    Texas
    Posts
    180
    Thanks
    19
    Thanked 5 Times in 5 Posts
    I'm thinking that blocks anyone from loading the css hence your styles not working on your site. Why do you want to block people from seeing css? As a webmaster , this has always been an ongoing issue to block seeing the html source code too, you just can't do it easily (or at all). So we just live with it.

  8. #8
    Member sed671's Avatar
    Join Date
    Apr 2010
    Location
    Guam
    Posts
    68
    Thanks
    6
    Thanked 9 Times in 9 Posts
    sharing is caring, I guess..
    GuamGrabs.com - A local classifieds site for Guam

  9. #9
    Thread Starter
    Veteran pinocchio's Avatar
    Join Date
    Sep 2010
    Location
    United Kingdom
    Posts
    633
    Thanks
    83
    Thanked 21 Times in 16 Posts
    I have not tested it yet !

  10. #10
    lausha's Avatar
    Join Date
    Dec 2010
    Location
    United Kingdom
    Posts
    422
    Thanks
    62
    Thanked 11 Times in 11 Posts
    Excuse my ignorance but... What do you mean, visitors can download your css file? How? And what happens if they do?

Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [MOD NEEDED] How can I restrict post ad ...
    By maurixius in forum ClassiPress General Discussion
    Replies: 6
    Last Post: January 17th, 2011, 02:48 PM
  2. Replies: 1
    Last Post: September 15th, 2010, 03:31 AM
  3. Restrict the Main Category from ads
    By dschn1978 in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: September 6th, 2010, 10:43 AM