.Ht access code to stop people ripping my site?

Venom

Seasoned Veteran
Joined
Sep 12, 2012
Messages
3,798
Reaction score
0
FP$
0
Whats the code to stop people navigating to mysite.com/themes etc but so the site still works?.

Thanks.
 
That can be tricky depending what is in the theme folders.
The best i can think of ATM is robots.txt & noindex (.htaccess)
 
Its a wordpress site. Just dont want people to be able to download/rip anything just view.
 
I just thought I'd point out that even if you disable right click, and somehow restrict access to /themes while still making it viewable via HTTP, there will always be a way for your theme to be ripped if someone really wants to.
 
Yeah I know, But it would stop people being able to just go to /wp-includes/themes/mytheme, and downloading the files.
 
People still need to be able to have their browsers download them though, there's no real way to make it only accessible to browsers.
 
pandaa said:
People still need to be able to have their browsers download them though, there's no real way to make it only accessible to browsers.

I think pandaa is on the right track with this one. Seeing that the browser will still need to access the directory to get the theme information to display it correctly. If someone wants your theme, they can and will get access to it. I mean it is so easy to open Chrome, and get into the dev tools and look at the source code of any site. It would be so hard to just stop things like this happening. Of course, I don't know if WP is a little different.
 
You are both on the right track, wp renders as HTML and CSS as any other site meaning chromes dev tools would give a complete copy in minutes. It's the Internet, you can't stop people copying your theme if they want to
 
Back
Top Bottom