Thread: .htaccess help
View Single Post
Old 05-31-2001, 05:01 PM  
ldinternet
Confirmed User
 
Join Date: Apr 2001
Posts: 8,245
Hi Web Mistress,

Create a blank page on your site called success.html and updload it to the root directory. On that page put the text "success!"

Replace your htaccess code with this

Code:
ErrorDocument 403 http://www.xxx-free-porn.net/success.html 
ErrorDocument 404 http://www.xxx-free-porn.net/success.html 
ErrorDocument 500 http://www.xxx-free-porn.net/success.html 

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://xxx-free-porn.net.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.xxx-free-porn.net.*$ [NC]
RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://www.xxx-free-porn.net/success.html
Then type in something that doesn't exist - such as http://www.xxx-free-porn.net/wf9wef09m34f9m3/

If it bounces you to success.html then you've done it. You can change http://www.xxx-free-porn.net/success.html to anything you like, such as sponsor codes, cgi-bin/out.cgi (link trades), etc
ldinternet is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote