Support » Everything else WordPress » The .htaccess file at the IP address

  • I know this isn’t really a WordPress question, but I’m hoping someone smarter than I can help.

    I have a single account at HostMySite that is divided into two website addresses – the WordPress blog at http://wendelbrume.com and the webspace at the IP address: http://76.12.167.39

    I am using a script to pull a video file from the IP address into the video player at the blog. The script is viewable in “View Source” which means that I’m showing the world the exact name and location of every video file, inviting content theft. The person that wrote the script said it can’t be hidden from “View Source”.

    I asked HostMySite what I should have in the .htaccess file at the IP address to limit access only to the blog, and their suggestion doesn’t work, it blocks the blog itself:

    You can block access to the .flv files using the following syntax in a .htaccess file

    * replace x.x.x.x with the ip address that will be granted access

    <FilesMatch “\.(flv)$”>
    order deny,allow
    Deny from all
    allow from x.x.x.x
    allow from x.x.x.x
    </filesmatch>

    I need to Deny from all, then allow http://wendelbrume.com access. But when I put http://wendelbrume.com in the allow line, it still doesn’t work. I must have the syntax wrong.

    Any help appreciated!

    Tom Wood

  • The topic ‘The .htaccess file at the IP address’ is closed to new replies.