Jump to content

Mark H.

Clients
  • Posts

    5,211
  • Joined

  • Last visited

  • Days Won

    1

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Posts posted by Mark H.


  1. As I recall (though I'm not known for my memory). Mind you, it was on a contract basis (they didn't do it out of the kindness of their hearts :lol: ).




    I sincerely hope you didn't give them the final payment, considering that an entire section of the manual, about one of the ACP menus, was missing. :whistle:
  2. Axel,

    In the .htaccess file in your forum root (or you can put it the .htaccess file that's in your public_html folder, to make it site-wide), add the following lines *after* the "DirectoryIndex" line :

    RewriteCond %{HTTP_REFERER} !^http://mydomain.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://mydomain.com$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.mydomain.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.mydomain.com$ [NC]
    RewriteRule .*\.(jpg|jpeg|gif|png|bmp|avi|mov|wma|wmf|wmv|doc|pps|xls)$ /leecher.html [R,NC]

    Substitute "mydomain.com" with your own domain name, but leave the remainder of each line as shown.

    I created a page titled "leecher.html" and placed in public_html, so that's why the last line references it. You can use any page name you wish, as long as it's in the public_html directory for that Domain of yours, then change "leecher.html" to the name you've used.

    It's one easy option, anyway, and prevents hotlinking of all the filetypes listed in the last line. You can add filetypes as you see fit, but follow the example as shown.

  3. If you have SSH access to both servers, and WGET available on the target, you could SSH in and tar/gzip the entire forum directory at the source server, put the resulting file somewhere under public_html on an accessible Domain there, then from SSH on the target server:

    cd /zip-file-target-directory <- public-html of target Domain, usually.

    wget http://www.whatever-domain-you-put-in.com/whatever-path/file.tgz <- or whatever is the actual filename.

    tar -xzf filename.tgz

    Pay attention to the file structure as it was zipped up.
    If you tarred the forum directory *from* ../public_html/ for example, put the file in public-html on the target Domain.
    If you tarred from the forum directory itself, i.e public-html/forum, using a wildcard "include" to get all files and subdirectories, make sure to unzip it from ../public-html/forum.

×
×
  • Create New...